Class DocsAssistantService

java.lang.Object
com.vaadin.uitest.ai.services.vectordb.DocsAssistantService

@Service public class DocsAssistantService extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getCompletionStream

      public reactor.core.publisher.Flux<ChatCompletionMessage> getCompletionStream(List<ChatCompletionMessage> history, com.vaadin.uitest.model.Framework framework, String question, String sessionId, boolean forParser)
      Finds similar documents in the documentation and calls the OpenAI chat completion API.
      Returns:
      The completion as a stream of chunks
    • resetIndexSource

      public void resetIndexSource(String sessionId)
      Resets the running index for the given sessionId
      Parameters:
      sessionId -