Skip to content

Commit

Permalink
fix: use snake style
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed May 22, 2024
1 parent fdf8a93 commit 47577b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/schema/chat_engines/condense_question/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const CondenseQuestionChatEngineOptionsSchema = BaseChatEngineOptionsSche
condenseQuestion: z.string().optional(),
}).optional(),
// reverse the context from the standard rag retriever / reranker (not affect graph retriever)
reverseContext: z.boolean().optional(),
reverse_context: z.boolean().optional(),
});

export type CondenseQuestionChatEngineOptions = z.infer<typeof CondenseQuestionChatEngineOptionsSchema>;
6 changes: 3 additions & 3 deletions src/core/services/llamaindex/chating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const DEFAULT_CHAT_ENGINE_OPTIONS: ChatEngineRequiredOptions = {
enable: false
},
prompts: {},
reverseContext: true,
reverse_context: true,
};

export class LlamaindexChatService extends AppChatService {
Expand Down Expand Up @@ -89,7 +89,7 @@ export class LlamaindexChatService extends AppChatService {
graph_retriever: graphRetrieverConfig,
metadata_filter: metadataFilterConfig ,
reranker: rerankerConfig,
reverseContext,
reverse_context,
prompts
} = engineOptions;

Expand Down Expand Up @@ -223,7 +223,7 @@ export class LlamaindexChatService extends AppChatService {
search_top_k,
top_k,
use_cache: false,
reversed: reverseContext,
reversed: reverse_context,
},
{
onStartSearch: (id, text) => {
Expand Down

0 comments on commit 47577b5

Please sign in to comment.