From bcc27e3852741759b72b5e35b0b7b1b742351b13 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 18 Jun 2024 15:48:25 -0700 Subject: [PATCH] fix --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index b9fc7dd74..5950dabee 100644 --- a/backend/main.py +++ b/backend/main.py @@ -357,7 +357,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): if "files" in data: data = {**data} rag_context, citations = get_rag_context( - docs=data["files"], + files=data["files"], messages=data["messages"], embedding_function=rag_app.state.EMBEDDING_FUNCTION, k=rag_app.state.config.TOP_K,