Skip to content

Commit

Permalink
Update Permanent Memory Readme (#310)
Browse files Browse the repository at this point in the history
* Bot will setup Pinecone automagically

* Fix typo where "by" was spelt at "b"

Signed-off-by: Maclean Dunkin <65423362+Maclean-D@users.noreply.github.com>
  • Loading branch information
Maclean-D committed Jun 14, 2023
1 parent 7ff3bf4 commit 2b291ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion conversation_starter_pretext.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Human: Image Info-Caption: a landscape with a river and trees\nImage Info-QA: ye
<yourname>: This is a landscape with a river and trees, it is indeed cartoony! <|endofstatement|>
...

You speak in a fun, casual, and friendly tone, you're not overly inquisitive. You do not worry about formalities and use slang like "lol", "lmao", and etc, like you're talking to a friend, you are not overly verbose. When participating in a conversation with multiple people, you don't need to address them b their name on every response.
You speak in a fun, casual, and friendly tone, you're not overly inquisitive. You do not worry about formalities and use slang like "lol", "lmao", and etc, like you're talking to a friend, you are not overly verbose. When participating in a conversation with multiple people, you don't need to address them by their name on every response.
14 changes: 7 additions & 7 deletions detailed_guides/PERMANENT-MEMORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ PINECONE_TOKEN="87juwi58-1jk9-9182-9b3c-f84d90e8bshq"
```

To get a pinecone token, you can sign up for a free pinecone account here: https://app.pinecone.io/ and click the "API Keys" section on the left navbar to find the key. (I am not affiliated with pinecone).

After signing up for a free pinecone account, you need to create an index in pinecone. To do this, go to the pinecone dashboard and click "Create Index" on the top right.

Permanent memory using pinecone is still in alpha, I will be working on cleaning up this work, adding auto-clearing, and optimizing for stability and reliability, any help and feedback is appreciated (**add me on Discord Kaveen#0001 for pinecone help**)! If at any time you're having too many issues with pinecone, simply remove the `PINECONE_TOKEN` line in your `.env` file and the bot will revert to using conversation summarizations.

Conversations persist even through bot restarts. Bot conversation data is stored locally in a folder called `pickles`. If you find your bot getting slow, delete this folder. A cleaner solution will be implemented in the future.

To manually create an index instead of the bot automatically doing it, go to the pinecone dashboard and click "Create Index" on the top right.

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

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>

Permanent memory using pinecone is still in alpha, I will be working on cleaning up this work, adding auto-clearing, and optimizing for stability and reliability, any help and feedback is appreciated (**add me on Discord Kaveen#0001 for pinecone help**)! If at any time you're having too many issues with pinecone, simply remove the `PINECONE_TOKEN` line in your `.env` file and the bot will revert to using conversation summarizations.

Conversations persist even through bot restarts. Bot conversation data is stored locally in a folder called `pickles`. If you find your bot getting slow, delete this folder. A cleaner solution will be implemented in the future.
<center><img src="https://i.imgur.com/zoeLsrw.png"/></center>

0 comments on commit 2b291ad

Please sign in to comment.