Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Feb 20, 2024
1 parent 8ec71ad commit 32a17b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions libs/.docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PGADMIN_DEFAULT_PASSWORD=local123

# Base (mandatory)
SUPERAGENT_API_URL=https://api.beta.superagent.sh
SUPERRAG_API_URL="https://rag.beta.superagent.sh/api/v1"
OPENAI_API_KEY=
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_DB_HOST}:${POSTGRES_DB_PORT}/superagent
DATABASE_MIGRATION_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_DB_HOST}:${POSTGRES_DB_PORT}/superagent
Expand All @@ -25,7 +26,11 @@ OPENROUTER_API_KEY=
# Mandatory for Neon DB
DATABASE_SHADOW_URL=
# Memory (mandatory)
MEMORY=motorhead
MEMORY_API_URL=http://motorhead:8081
# Redis memory
REDIS_MEMORY_URL=redis://localhost:6379/0
REDIS_MEMORY_WINDOW=10
# NOTE: Vectorstores (one is mandatory if you plan on loading datasources)
VECTORSTORE=pinecone # `qdrant`, `weaviate` etc.
# Qdrant vars
Expand Down
4 changes: 4 additions & 0 deletions libs/.docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
environment:
- PORT=8080
- SUPERAGENT_API_URL=${SUPERAGENT_API_URL}
- SUPERRAG_API_URL=${SUPERRAG_API_URL}
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY}
- POSTGRES_DB_HOST=${POSTGRES_DB_HOST}
- POSTGRES_DB_PORT=${POSTGRES_DB_PORT}
Expand All @@ -20,7 +21,10 @@ services:
- JWT_SECRET=${JWT_SECRET}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- DATABASE_SHADOW_URL=${DATABASE_SHADOW_URL}
- MEMORY=${MEMORY}
- MEMORY_API_URL=${MEMORY_API_URL}
- REDIS_MEMORY_URL=${REDIS_MEMORY_URL}
- REDIS_MEMORY_WINDOW=${REDIS_MEMORY_WINDOW}
- VECTORSTORE=${VECTORSTORE}
- QDRANT_API_KEY=${QDRANT_API_KEY}
- QDRANT_HOST=${QDRANT_HOST}
Expand Down
6 changes: 3 additions & 3 deletions libs/superagent/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ OPENROUTER_API_KEY=
# Mandatory for Neon DB
DATABASE_SHADOW_URL=
# Memory (mandatory)
MEMORY=
MEMORY=motorhead
# Redis Memory
REDIS_URL=
REDIS_MEMORY_WINDOW=
REDIS_MEMORY_URL=redis://localhost:6379/0
REDIS_MEMORY_WINDOW=10
# Motorhead Memory
MEMORY_API_URL=https://memory.superagent.sh
# NOTE: Vectorstores (one is mandatory if you plan on loading datasources)
Expand Down
2 changes: 1 addition & 1 deletion libs/superagent/app/agents/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async def _get_memory(self) -> List:
if self.session_id
else f"{self.agent_id}"
),
url=config("REDIS_URL", "redis://localhost:6379/0"),
url=config("REDIS_MEMORY_URL", "redis://localhost:6379/0"),
key_prefix="superagent:",
),
memory_key="chat_history",
Expand Down

0 comments on commit 32a17b6

Please sign in to comment.