mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
minorfix-3
This commit is contained in:
@@ -44,15 +44,12 @@ def api_answer():
|
||||
vectorstore = "vectors/" + data["active_docs"]
|
||||
if data['active_docs'] == "default":
|
||||
vectorstore = ""
|
||||
|
||||
else:
|
||||
vectorstore = ""
|
||||
|
||||
|
||||
# loading the index and the store and the prompt template
|
||||
index = faiss.read_index(f"{vectorstore}docs.index")
|
||||
|
||||
|
||||
with open(f"{vectorstore}faiss_store.pkl", "rb") as f:
|
||||
store = pickle.load(f)
|
||||
|
||||
@@ -72,8 +69,6 @@ def api_answer():
|
||||
# "answer": "The answer is 42",
|
||||
# "sources": ["https://en.wikipedia.org/wiki/42_(number)", "https://en.wikipedia.org/wiki/42_(number)"]
|
||||
# }
|
||||
|
||||
|
||||
return result
|
||||
|
||||
@app.route("/api/docs_check", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user