Skip to content
Karyam

RAG Logs

RAG Logs provide complete visibility into how enterprise knowledge is ingested, processed, stored, and retrieved inside Karyam.

Unlike traditional AI systems where retrieval happens behind the scenes, Karyam exposes every stage of the RAG pipeline.

This allows teams to understand:

  • Which files were processed
  • Which embedding model was used
  • How artifacts were generated
  • When vectors were stored
  • Which chunks were retrieved
  • Which chunks were discarded
  • What context was sent to the LLM
  • Why retrieval failed

RAG execution logs are available from:

AI Infra
└── RAG Runs

The RAG Runs page provides complete visibility into both ingestion and retrieval operations across the workspace.


Karyam tracks two categories of RAG operations.

Responsible for transforming enterprise knowledge into searchable embeddings.

File Upload
↓
Chunk Generation
↓
Embedding Creation
↓
Vector Storage

Responsible for retrieving relevant knowledge during execution.

User Query
↓
Vector Search
↓
Chunk Filtering
↓
Context Building
↓
LLM Response

Type Description
INGESTION Knowledge ingestion and indexing
RETRIEVAL Runtime knowledge retrieval

Generated when an ingestion pipeline begins.

Example:

rag_ingestion_started
File: vpn-policy.pdf
Type: INGESTION
Status: RUNNING

Generated when Karyam resolves the embedding model configured for the listener.

Example:

rag_model_resolution
Model: text-embedding-3-large
Provider: OpenAI
Status: SUCCESS

Generated after artifacts are successfully extracted from uploaded files.

Examples include:

  • Text extraction
  • PDF parsing
  • Image OCR
  • Metadata generation

Example:

rag_artifacts_generated
Artifacts: 14
Status: SUCCESS

Generated when an artifact is intentionally skipped.

Examples include:

  • Unsupported file types
  • Sidecar files
  • Duplicate processing

Example:

rag_artifacts_skipped
Reason: Sidecar description file
Status: INFO

Generated when embedding generation begins.

Example:

rag_embedding_started
Chunks: 42
Status: RUNNING

Generated when embedding generation completes successfully.

Example:

rag_embedding_completed
Embeddings Generated: 42
Status: SUCCESS

Generated when vectors begin writing to the configured vector database.

Example:

rag_vector_store_started
Vector DB: Qdrant
Status: RUNNING

Generated when vector storage completes.

Example:

rag_vector_store_completed
Vectors Stored: 42
Status: SUCCESS

Generated when ingestion finishes successfully.

Example:

rag_ingestion_completed
Duration: 5.3s
Status: SUCCESS

Generated when retrieval begins for an agent or workflow request.

Example:

rag_retrieval_started
Query:
"How do I restore VPN access?"
Status: RUNNING

Generated when vector search begins.

Example:

rag_search_started
TopK: 10
Status: RUNNING

Generated after vector search completes.

Example:

rag_search_completed
Results Found: 8
Status: SUCCESS

Generated for every retrieved chunk selected for ranking.

Example:

rag_chunk_retrieved
File: vpn-policy.pdf
Score: 0.92
Status: SUCCESS

Generated when a retrieved chunk is discarded.

Examples include:

  • Low similarity score
  • Duplicate content
  • Filtering rules

Example:

rag_chunk_discarded
Reason: Similarity below threshold
Status: INFO

Generated after chunk filtering completes.

Example:

rag_chunk_filtered
Selected Chunks: 5
Discarded Chunks: 3
Status: SUCCESS

Generated after the final retrieval context is prepared.

Example:

rag_context_built
Chunks Included: 5
Context Size: 6200 tokens
Status: SUCCESS

Generated before the final context is sent to the language model.

Example:

rag_llm_started
Model: Claude Sonnet
Status: RUNNING

Generated after the language model produces a response.

Example:

rag_llm_completed
Completion Tokens: 721
Status: SUCCESS

Generated when retrieval execution completes.

Example:

rag_retrieval_completed
Duration: 1.8s
Status: SUCCESS

Generated whenever ingestion or retrieval fails.

Examples include:

  • Embedding failures
  • Vector database errors
  • Model failures
  • Parsing failures
  • Retrieval failures

Example:

rag_error
Reason: Qdrant connection timeout
Status: FAILED

Every RAG event contains a status.

Status Description
RUNNING Operation currently executing
SUCCESS Operation completed successfully
FAILED Operation failed
INFO Informational event

rag_ingestion_started
rag_model_resolution
rag_artifacts_generated
rag_embedding_started
rag_embedding_completed
rag_vector_store_started
rag_vector_store_completed
rag_ingestion_completed

rag_retrieval_started
rag_search_started
rag_search_completed
rag_chunk_retrieved
rag_chunk_retrieved
rag_chunk_discarded
rag_chunk_filtered
rag_context_built
rag_llm_started
rag_llm_completed
rag_retrieval_completed

RAG Logs provide:

  • Retrieval transparency
  • Knowledge debugging
  • Embedding visibility
  • Vector database observability
  • Production troubleshooting

This allows teams to understand exactly how enterprise knowledge influences AI decisions.


Continue with:

  • Execution Traces
  • Token Usage
  • Cost Analytics
  • Debugging