Skip to content
Merged
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
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ services:
condition: service_completed_successfully
volumes:
- frontend-data:/src/webapp
- search-api-data:/app/data
env_file: [ keys.env ]
environment:
- RUST_LOG=info
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still up to date (since this got refactored from Rust to Python)? I tried to set this to "debug" but I do not see any effect

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is not for the stdout/stderr logs (which goes to usual docker output)

It is for a JSONL file that contains the details of each request, each line is a JSON containing the following:

        json.dumps(
            {
                "timestamp": datetime.now(timezone.utc).isoformat(),
                "token_usage": token_usage.model_dump(), # token usage for this request
                "input": request.model_dump(), # Input search question (or list of messages) from the user
                "response": final_response.model_dump(), # final response of the user
            }
        )

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which env var is for the log level in docker logs?

Expand All @@ -231,6 +232,7 @@ volumes:
opensearch-dashboards-data:
broker-data:
flower-data:
search-api-data:
frontend-data:

networks:
Expand Down