Skip to content

Commit

Permalink
Merge pull request #13 from sandbox-ai/LaLeyDeMilei_dev
Browse files Browse the repository at this point in the history
La ley de milei dev
  • Loading branch information
tatakof authored Feb 8, 2024
2 parents c424a63 + 07a6267 commit e0c75cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def r_heartbeat():
################################################
# Question
################################################
@home.route("/question", methods=["POST"])
@home.route("/api/question", methods=["POST"])
def r_question(embedder = embedder, query_engine = query_engine):
json_result = request.get_json()
user_query = json_result.get("question", "")
Expand Down Expand Up @@ -179,9 +179,10 @@ def r_question(embedder = embedder, query_engine = query_engine):

return jsonify(answer=text, sources=sources, error="OK")

# WITH STREAMING


# WITH STREAMING

#def generate_stream():
#for chunk in query_engine.generate_llm_response2(
#query=user_query,
Expand Down

0 comments on commit e0c75cd

Please sign in to comment.