From 1c1d2c254dc9c0a87ab99b9304a24b7725bbca90 Mon Sep 17 00:00:00 2001 From: Steven Kreitzer Date: Thu, 25 Apr 2024 13:38:18 -0500 Subject: [PATCH] fix: query collection api call --- backend/apps/rag/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/rag/main.py b/backend/apps/rag/main.py index de77eeadb..2db2cf1ff 100644 --- a/backend/apps/rag/main.py +++ b/backend/apps/rag/main.py @@ -390,7 +390,7 @@ def query_collection_handler( user=Depends(get_current_user), ): try: - embeddings_function = embeddings_function( + embeddings_function = query_embeddings_function( app.state.RAG_EMBEDDING_ENGINE, app.state.RAG_EMBEDDING_MODEL, app.state.sentence_transformer_ef,