Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Nov 17, 2023
1 parent c14a9a5 commit ba77a67
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application/api/answer/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ def run_async_chain(chain, question, chat_history):

def get_vectorstore(data):
if "active_docs" in data:
if data["active_docs"].split("/")[0] == "local":
if data["active_docs"].split("/")[1] == "default":
if data["active_docs"].split("/")[1] == "default":
vectorstore = ""
else:
vectorstore = "indexes/" + data["active_docs"]
elif data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"]
else:
vectorstore = "vectors/" + data["active_docs"]
if data["active_docs"] == "default":
Expand Down

2 comments on commit ba77a67

@vercel
Copy link

@vercel vercel bot commented on ba77a67 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt-arc53.vercel.app
nextra-docsgpt.vercel.app
nextra-docsgpt-git-main-arc53.vercel.app
docs.docsgpt.co.uk

@vercel
Copy link

@vercel vercel bot commented on ba77a67 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-git-main-arc53.vercel.app
docs-gpt-brown.vercel.app
docs-gpt-arc53.vercel.app

Please sign in to comment.