Skip to content

Commit

Permalink
feat: Added tracing for LLM related calls!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Jan 22, 2024
1 parent 069cb1f commit aad78f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions celery_app/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
)
from tc_messageBroker.rabbit_mq.payload.payload import Payload
from tc_messageBroker.rabbit_mq.queue import Queue
from traceloop.sdk import Traceloop


@app.task
Expand All @@ -40,6 +41,8 @@ def ask_question_auto_search(
- `date`
- `content`: which is the `ChatInputCommandInteraction` as a dictionary
"""
Traceloop.init()

prefix = f"COMMUNITY_ID: {community_id} | "
logging.info(f"{prefix}Processing question!")

Expand Down
1 change: 1 addition & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- MONGODB_PORT=27017
- MONGODB_USER=root
- MONGODB_PASS=pass
- TRACELOOP_BASE_URL=some_url
- NEO4J_PROTOCOL=bolt
- NEO4J_HOST=neo4j
- NEO4J_PORT=7687
Expand Down

0 comments on commit aad78f7

Please sign in to comment.