Skip to content

Commit

Permalink
Update PERMANENT-MEMORY.md
Browse files Browse the repository at this point in the history
Signed-off-by: Kaveen Kumarasinghe <[email protected]>
  • Loading branch information
Kav-K authored Jan 13, 2024
1 parent dd3778f commit b75e8f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions detailed_guides/PERMANENT-MEMORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Permanent Memory and Conversations
Permanent memory has now been implemented into the bot, using the OpenAI Ada embeddings endpoint, and <a href="https://www.pinecone.io/">Pinecone</a>.
# Permanent Memory and Conversations
We are migrating towards using [QDRANT](https://qdrant.tech/) as our vector database backing, we are moving away from pinecone. Qdrant is an excellent vector database choice, and in fact the best one that we've tested and used so far.

Permanent memory has now been implemented into the bot, using the OpenAI Ada embeddings endpoint, and Pinecone.

Pinecone is a vector database. The OpenAI Ada embeddings endpoint turns pieces of text into embeddings. The way that this feature works is by embedding the user prompts and the GPT responses, storing them in a pinecone index, and then retrieving the most relevant bits of conversation whenever a new user prompt is given in a conversation.

Expand All @@ -22,4 +24,4 @@ To manually create an index instead of the bot automatically doing it, go to the

Then, name the index `conversation-embeddings`, set the dimensions to `1536`, and set the metric to `DotProduct`:

<center><img src="https://i.imgur.com/zoeLsrw.png"/></center>
<center><img src="https://i.imgur.com/zoeLsrw.png"/></center>

0 comments on commit b75e8f5

Please sign in to comment.