From 786ee6003c7716e747af32a67ffbaf10618f9784 Mon Sep 17 00:00:00 2001 From: cs0lar Date: Tue, 11 Apr 2023 13:50:02 +0100 Subject: [PATCH] fixed formatting --- README.md | 2 -- scripts/commands.py | 2 +- scripts/memory/pinecone.py | 2 +- scripts/memory/weaviate.py | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3e415361..18809f58 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scripts/commands.py b/scripts/commands.py index 5415c1e0..ce5d04ff 100644 --- a/scripts/commands.py +++ b/scripts/commands.py @@ -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." \ No newline at end of file + return f"Agent {key} deleted." diff --git a/scripts/memory/pinecone.py b/scripts/memory/pinecone.py index 287bc1dc..d89daf25 100644 --- a/scripts/memory/pinecone.py +++ b/scripts/memory/pinecone.py @@ -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() \ No newline at end of file + return self.index.describe_index_stats() diff --git a/scripts/memory/weaviate.py b/scripts/memory/weaviate.py index b6032648..d29192ea 100644 --- a/scripts/memory/weaviate.py +++ b/scripts/memory/weaviate.py @@ -97,4 +97,4 @@ class WeaviateMemory(MemoryProviderSingleton): .do() class_data = result['data']['Aggregate'][self.index] - return class_data[0]['meta'] if class_data else {} \ No newline at end of file + return class_data[0]['meta'] if class_data else {}