How ramprakash-munugapati/ragram_enterprise works
RAGRAM Enterprise turns user questions into structured queries, retrieves matching documents, grades the context, and synthesizes an answer, retrying with a rewritten query when needed. Separately, a sync worker polls CDC events, derives text and embeddings, and upserts documents into the database. The CLI assembles and runs these components; the Python API also exposes the workflow directly. Several internal implementations are in omitted source excerpts, so those relationships are included only where the README documents them.
Main entry points: RagramEnterpriseEngine.py EnterpriseAgentWorkflow · cli.py CLI
Components 16
Entry points
- CLI
cli.py
Ingestion and storage
- EnterpriseConfig
RagramEnterpriseEngine.py - PostgresEngine
RagramEnterpriseEngine.py - Relational and vector store
- CDC events
- RealTimeSyncWorker
RagramEnterpriseEngine.py - Embedding generation
RagramEnterpriseEngine.py
Query and retrieval
- QueryRouter
RagramEnterpriseEngine.py - Structured query parsing
RagramEnterpriseEngine.py - Vector and metadata search
RagramEnterpriseEngine.py
Answer workflow
- EnterpriseAgentWorkflow
RagramEnterpriseEngine.py - Context grader
RagramEnterpriseEngine.py - Query rewrite
RagramEnterpriseEngine.py - Factual synthesizer
RagramEnterpriseEngine.py - Answer and missing info
Other components
- User
Connections 21
- User → CLI: runs
README.md - User → EnterpriseAgentWorkflow: queries via API
README.md - CLI → EnterpriseConfig: configures
cli.py - CLI → PostgresEngine: creates
cli.py - CLI → RealTimeSyncWorker: starts
cli.py - CLI → QueryRouter: creates
cli.py - CLI → EnterpriseAgentWorkflow: runs
cli.py - EnterpriseConfig → PostgresEngine: configures
cli.py - CDC events → RealTimeSyncWorker: provides events
README.md - RealTimeSyncWorker → Embedding generation: computes
RagramEnterpriseEngine.py - RealTimeSyncWorker → PostgresEngine: upserts documents
RagramEnterpriseEngine.py - PostgresEngine → Relational and vector store: stores documents
README.md - PostgresEngine → CDC events: polls events
README.md - EnterpriseAgentWorkflow → QueryRouter: routes query
RagramEnterpriseEngine.py - QueryRouter → Structured query parsing: parses query
RagramEnterpriseEngine.py - EnterpriseAgentWorkflow → Vector and metadata search: retrieves context
RagramEnterpriseEngine.py - Vector and metadata search → PostgresEngine: searches documents
README.md - EnterpriseAgentWorkflow → Context grader: grades context
RagramEnterpriseEngine.py - EnterpriseAgentWorkflow → Query rewrite: rewrites on failure
README.md - EnterpriseAgentWorkflow → Factual synthesizer: synthesizes context
RagramEnterpriseEngine.py - Factual synthesizer → Answer and missing info: returns answer
README.md