Class DocsAssistantService
java.lang.Object
com.vaadin.uitest.ai.services.vectordb.DocsAssistantService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDocsAssistantService(OpenAIService openAIService, PineconeService pineconeService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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.voidresetIndexSource(String sessionId) Resets the running index for the given sessionId
-
Field Details
-
LINKS_LIMIT_JAVADOCS
public static final int LINKS_LIMIT_JAVADOCS- See Also:
-
LINKS_LIMIT_DOCUMENTATION
public static final int LINKS_LIMIT_DOCUMENTATION- See Also:
-
-
Constructor Details
-
DocsAssistantService
-
-
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
Resets the running index for the given sessionId- Parameters:
sessionId-
-