From 5be80b2b5a257927869d2d4c68c5a6699f7eabe3 Mon Sep 17 00:00:00 2001 From: Christopher Canal Date: Sat, 7 Oct 2023 16:48:10 -0500 Subject: [PATCH] fixed bug with semantic endpoint and updated readme instructions --- README.md | 1 + api/src/stampy_chat/get_blocks.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b8b928..e325a72 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ Install `npm`, `python 3.11`, and [`pipenv`](https://pipenv.pypa.io/en/latest/). Some things (e.g. logging) require a database connection to work correctly. To make this easier, there is a script to set one up locally via Docker. To get this working: +* Install mysql on your local machine * [Install Docker](https://docs.docker.com/get-docker/) * Run the script: `./local_db.sh` diff --git a/api/src/stampy_chat/get_blocks.py b/api/src/stampy_chat/get_blocks.py index 94b1d5d..ad417b7 100644 --- a/api/src/stampy_chat/get_blocks.py +++ b/api/src/stampy_chat/get_blocks.py @@ -113,7 +113,7 @@ def get_top_k_blocks(index, user_query: str, k: int) -> List[Block]: logger.info('Pinecone index not found, performing semantic search on chat.stampy.ai endpoint.') response = requests.post( - REMOTE_CHAT_INSTANCE, + REMOTE_CHAT_INSTANCE + "/semantic", json = { "query": user_query, "k": k