A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ts.llamaindex.ai/docs/api/classes/CondenseQuestionChatEngine below:

Build LLM-powered document agents and workflows

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:33

CondenseQuestionChatEngine is used in conjunction with a Index (for example VectorStoreIndex). It does two steps on taking a user's chat message: first, it condenses the chat message with the previous chat history into a question with more context. Then, it queries the underlying Index using the new question with context and returns the response. CondenseQuestionChatEngine performs well when the input is primarily questions about the underlying data. It performs less well when the chat messages are not questions about the data, or are very referential to previous context.

Extends Constructors Constructor

new CondenseQuestionChatEngine(init): CondenseQuestionChatEngine

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:43

Parameters init queryEngine

BaseQueryEngine

chatHistory

ChatMessage[]

condenseMessagePrompt?

CondenseQuestionPrompt

Returns

CondenseQuestionChatEngine

Overrides

BaseChatEngine.constructor

Properties queryEngine

queryEngine: BaseQueryEngine

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:34

memory

memory: Memory

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:35

llm

llm: LLM

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:36

condenseMessagePrompt

condenseMessagePrompt: CondenseQuestionPrompt

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:37

Accessors chatHistory Get Signature

get chatHistory(): Promise<ChatMessage[]>

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:39

Returns

Promise<ChatMessage[]>

Overrides

BaseChatEngine.chatHistory

Methods _getPromptModules()

protected _getPromptModules(): ModuleRecord

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:57

Returns

ModuleRecord

_getPrompts()

protected _getPrompts(): object

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:61

Returns

object

condenseMessagePrompt

condenseMessagePrompt: CondenseQuestionPrompt

_updatePrompts()

protected _updatePrompts(promptsDict): void

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:67

Parameters promptsDict condenseMessagePrompt

CondenseQuestionPrompt

Returns

void

chat() Call Signature

chat(params): Promise<EngineResponse>

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:86

Parameters params

NonStreamingChatEngineParams

Returns

Promise<EngineResponse>

Overrides

BaseChatEngine.chat

Call Signature

chat(params): Promise<AsyncIterable<EngineResponse, any, any>>

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:87

Parameters params

StreamingChatEngineParams

Returns

Promise<AsyncIterable<EngineResponse, any, any>>

Overrides

BaseChatEngine.chat

reset()

reset(): void

Defined in: packages/llamaindex/src/engines/chat/CondenseQuestionChatEngine.ts:132

Returns

void


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4