Skip to content

Commit 4575198

Browse files
changed chat mode names (#702)
1 parent 1af5877 commit 4575198

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/QA_integration_new.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
def get_neo4j_retriever(graph, retrieval_query,document_names,mode,index_name="vector",keyword_index="keyword", search_k=CHAT_SEARCH_KWARG_K, score_threshold=CHAT_SEARCH_KWARG_SCORE_THRESHOLD):
4343
try:
44-
if mode == "hybrid" or mode == "hybrid+graph":
44+
if mode == "fulltext" or mode == "fulltext+graph":
4545
neo_db = Neo4jVector.from_existing_graph(
4646
embedding=EMBEDDING_FUNCTION,
4747
index_name=index_name,
@@ -374,7 +374,7 @@ def QA_RAG(graph, model, question, document_names,session_id, mode):
374374
"user": "chatbot"
375375
}
376376
return result
377-
elif mode == "vector" or mode == "hybrid":
377+
elif mode == "vector" or mode == "fulltext":
378378
retrieval_query = VECTOR_SEARCH_QUERY
379379
else:
380380
retrieval_query = VECTOR_GRAPH_SEARCH_QUERY.format(no_of_entites=VECTOR_GRAPH_SEARCH_ENTITY_LIMIT)

frontend/src/utils/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const defaultLLM = llms?.includes('openai-gpt-4o-mini')
5959
export const chatModes =
6060
process.env?.VITE_CHAT_MODES?.trim() != ''
6161
? process.env.VITE_CHAT_MODES?.split(',')
62-
: ['vector', 'graph', 'graph+vector', 'hybrid', 'hybrid+graph'];
62+
: ['vector', 'graph', 'graph+vector', 'fulltext', 'fulltext+graph'];
6363
export const chunkSize = process.env.VITE_CHUNK_SIZE ? parseInt(process.env.VITE_CHUNK_SIZE) : 1 * 1024 * 1024;
6464
export const timeperpage = process.env.VITE_TIME_PER_PAGE ? parseInt(process.env.VITE_TIME_PER_PAGE) : 50;
6565
export const timePerByte = 0.2;

0 commit comments

Comments
 (0)