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,