How siddharth-kharche/generative_ai_project works
This repository is a Generative AI project template, not a single end-user application. Its documented capabilities span agent and chat orchestration, model routing, prompt engineering, memory and retrieval, skills, multimodal processing, and supporting safeguards. The README describes these as modular components but does not specify runtime calls or data flow; the sampled source excerpts are empty, so relationships between components are not drawn.
Components 31
Agents and flows
- Base agent
src/agents/base_agent.py - Planner
src/agents/planner.py - Executor
src/agents/executor.py - Chat flow
src/pipelines/chat_flow.py - Document processing
src/pipelines/doc_processor.py
Model access
- LLM router
src/llm/router.py - OpenAI adapter
src/llm/platforms/openai.py - Anthropic adapter
src/llm/platforms/anthropic.py - LLM schemas
src/llm/schemas.py
Prompt and memory
- Prompt chaining
src/prompt_engineering/chainer.py - Few-shot prompts
src/prompt_engineering/few_shot.py - Prompt templates
src/prompt_engineering/templates.py - Short-term memory
src/memory/short_term.py - Long-term memory
src/memory/long_term.py
Retrieval and skills
- Document lookup
src/retrieval/document_db.py - Vector search
src/retrieval/vector_db.py - Web search
src/skills/web_search.py - Code execution
src/skills/code_interpreter.py - Image processing
src/vision_audio/image_processor.py - Speech handling
src/vision_audio/speech_handler.py
Safety and operations
- Fallback routing
src/fallback/router.py - PII filtering
src/guardrails/pii.py - Error handling
src/handlers/error_handler.py - Caching
src/utils/cache.py - Rate limiting
src/utils/rate_limiter.py - Token counting
src/utils/token_counter.py - Logging
src/utils/logger.py
Other components
- Model configuration
config/model_config.yaml - Prompt configuration
config/prompt_templates.yaml - Prompt data
data/prompts/default.yaml - Embedding data
data/embeddings/empty_embeddings.json