Commit bcc27e38 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 35026849
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment