AI answer
AI answer · Type
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
chat | ChatInterface | |
embeddingGenerator | EmbeddingGeneratorInterface | |
systemMessageTemplate | string | |
vectorStore | VectorStore |
Methods
Section titled “Methods”answer
Section titled “answer”answer.answer(question: string, k?: int = 4, additionalArguments?: array = []) → string
No description yet.
answerFromChat
Section titled “answerFromChat”answer.answerFromChat(messages: array, k?: int = 4, additionalArguments?: array = [], stream?: bool = true)
No description yet.
answerStream
Section titled “answerStream”answer.answerStream(question: string, k?: int = 4, additionalArguments?: array = []) → StreamInterface
No description yet.
getRetrievedDocuments
Section titled “getRetrievedDocuments”answer.getRetrievedDocuments() → array
No description yet.
getTotalTokens
Section titled “getTotalTokens”answer.getTotalTokens() → int
No description yet.