Skip to content

Commit

Permalink
[CLEANUP][Feat][Swarms Memory]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye Gomez authored and Kye Gomez committed Jul 8, 2024
1 parent bbbbc9e commit b8f3127
Show file tree
Hide file tree
Showing 17 changed files with 95 additions and 375 deletions.
438 changes: 78 additions & 360 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/swarms/structs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ agent.run("Generate a 10,000 word blog on health and wellness.")

```python
from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB # Copy and paste the code and put it in your own local directory.
from swarms_memory import ChromaDB # Copy and paste the code and put it in your own local directory.

# Making an instance of the ChromaDB class
memory = ChromaDB(
Expand Down
2 changes: 1 addition & 1 deletion playground/agents/agent_with_long_term_memory.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB
from swarms.models.tiktoken_wrapper import TikTokenizer

# Initialize the agent
Expand Down
2 changes: 1 addition & 1 deletion playground/agents/agent_with_longterm_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Import the OpenAIChat model and the Agent struct
from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB

# Load the environment variables
load_dotenv()
Expand Down
2 changes: 1 addition & 1 deletion playground/agents/new_perplexity_agent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from swarms import Agent
from swarms.models.llama3_hosted import llama3Hosted
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB
from swarms.tools.prebuilt.bing_api import fetch_web_articles_bing_api

# Define the research system prompt
Expand Down
2 changes: 1 addition & 1 deletion playground/agents/perplexity_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB
from swarms.tools.prebuilt.bing_api import fetch_web_articles_bing_api
import os
from dotenv import load_dotenv
Expand Down
2 changes: 1 addition & 1 deletion playground/demos/patient_question_assist/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from swarms import Agent, OpenAIChat
from typing import List
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB

memory = ChromaDB(
metric="cosine",
Expand Down
2 changes: 1 addition & 1 deletion playground/demos/swarm_mechanic/swarm_mechanic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from swarms import Agent, llama3Hosted, AgentRearrange
from pydantic import BaseModel
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB

# Initialize the language model agent (e.g., GPT-3)
llm = llama3Hosted(max_tokens=3000)
Expand Down
2 changes: 1 addition & 1 deletion playground/demos/swarm_of_complaince/compliance_swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from swarms import Agent
from swarms.models.llama3_hosted import llama3Hosted
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB


# Model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from swarms import Agent, OpenAIChat
from swarms.structs.mixture_of_agents import MixtureOfAgents
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB


SEC_DATA = """
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from swarms import Agent, OpenAIChat
from swarms.structs.mixture_of_agents import MixtureOfAgents
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB


SEC_DATA = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OpenAIChat,
TogetherLLM,
)
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB
from dotenv import load_dotenv

# load the environment variables
Expand Down
2 changes: 1 addition & 1 deletion playground/swarms/movers_swarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB
from swarms_memory import ChromaDB
from swarms.tools.prebuilt.bing_api import fetch_web_articles_bing_api
import os
from dotenv import load_dotenv
Expand Down
2 changes: 1 addition & 1 deletion playground/swarms_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"outputs": [],
"source": [
"from swarms import Agent, OpenAIChat\n",
"from playground.memory.chromadb_example import ChromaDB\n",
"from swarms_memory import ChromaDB\n",
"\n",
"# Making an instance of the ChromaDB class\n",
"memory = ChromaDB(\n",
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "swarms"
version = "5.3.2"
version = "5.3.3"
description = "Swarms - Pytorch"
license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"]
Expand Down Expand Up @@ -55,6 +55,7 @@ openai = ">=1.30.1,<2.0"
termcolor = "*"
tiktoken = "*"
networkx = "*"
swarms-memory = "*"



Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ pytest>=8.1.1
termcolor>=2.4.0
pandas>=2.2.2
fastapi>=0.110.1
networkx
networkx
swarms-memory
File renamed without changes.

0 comments on commit b8f3127

Please sign in to comment.