Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ services:
command: celery -A workers.tasks worker --loglevel=INFO
volumes:
- ./:/app
depends_on:
- mongo
- neo4j
- qdrant

app:
build:
Expand All @@ -57,6 +61,8 @@ services:
command: fastapi dev main.py --host 0.0.0.0 --port 8000
volumes:
- ./:/app
depends_on:
- worker

volumes:
neo4j-data:
Expand Down
4 changes: 2 additions & 2 deletions workers/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

broker_transport_options = {
'region': env.AWS_REGION,
'visibility_timeout': 3600, # 1 hour
'polling_interval': 5, # seconds
'visibility_timeout': 3600, # 1 hour
'polling_interval': 5, # seconds
'predefined_queues': {
'default': {
'url': env.SQS_DEFAULT_QUEUE_URL,
Expand Down
1 change: 1 addition & 0 deletions workers/knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def process(self, key: str):
aws_access_key_id=env.AWS_ACCESS_KEY_ID,
aws_secret_access_key=env.AWS_SECRET_ACCESS_KEY,
)
# Create the LLMGraphTransformer with the allowed nodes and relationships
llm_graph = LLMGraphTransformer(
llm,
allowed_nodes=nodes,
Expand Down
Loading