Skip to content

Commit

Permalink
fixed bug with semantic endpoint and updated readme instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscanal committed Oct 7, 2023
1 parent 1b43c28 commit 5be80b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion api/src/stampy_chat/get_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5be80b2

Please sign in to comment.