fixed formatting

This commit is contained in:
cs0lar
2023-04-11 13:50:02 +01:00
parent 5fe784aabe
commit 786ee6003c
4 changed files with 3 additions and 5 deletions

View File

@@ -185,7 +185,6 @@ Pinecone enables the storage of vast amounts of vector-based memory, allowing fo
2. Choose the `Starter` plan to avoid being charged.
3. Find your API key and region under the default project in the left sidebar.
### Setting up environment variables
Simply set them in the `.env` file.
@@ -193,7 +192,6 @@ Simply set them in the `.env` file.
Alternatively, you can set them from the command line (advanced):
For Windows Users:
```
setx PINECONE_API_KEY "YOUR_PINECONE_API_KEY"
setx PINECONE_ENV "Your pinecone region" # something like: us-east4-gcp

View File

@@ -298,4 +298,4 @@ def delete_agent(key):
result = agents.delete_agent(key)
if not result:
return f"Agent {key} does not exist."
return f"Agent {key} deleted."
return f"Agent {key} deleted."

View File

@@ -47,4 +47,4 @@ class PineconeMemory(MemoryProviderSingleton):
return [str(item['metadata']["raw_text"]) for item in sorted_results]
def get_stats(self):
return self.index.describe_index_stats()
return self.index.describe_index_stats()

View File

@@ -97,4 +97,4 @@ class WeaviateMemory(MemoryProviderSingleton):
.do()
class_data = result['data']['Aggregate'][self.index]
return class_data[0]['meta'] if class_data else {}
return class_data[0]['meta'] if class_data else {}