Skip to content

Commit

Permalink
Changes to make graphrag ui work
Browse files Browse the repository at this point in the history
Signed-off-by: theresa <[email protected]>
  • Loading branch information
ichbinblau committed Nov 13, 2024
1 parent 60a53c7 commit b140381
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions comps/nginx/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 6000;
proxy_send_timeout 6000;
proxy_read_timeout 6000;
send_timeout 6000;
}

location /v1/dataprep/get_file {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ async def retrieve(input: Union[ChatCompletionRequest]) -> Union[ChatCompletionR
if logflag:
logger.info(input)
start = time.time()
query = input.messages[0]["content"]

if isinstance(input.messages, str):
query = input.messages
else:
query = input.messages[0]["content"]
logger.info(f"Query received in retriever: {query}")

if OPENAI_API_KEY:
Expand Down

0 comments on commit b140381

Please sign in to comment.