Spaces:
Runtime error
Runtime error
Commit History
-
feat(pipeline): RAG quality gate, live coverage, streaming API, recursion limitβ
sourabh guptaRAG quality gate (rag.py + constants.py): - COVERAGE_RELEVANCE_FLOOR = -5.0: reranker scores are absolute/cross-query-comparable so a floor correctly gates garbage retrieval (APAC β top score -6.85 β no coverage) - LLM sentinel detection: if LLM emits the no-coverage string, drop sources rather than returning contradictory "No coverage found... Sources: NFL Fumbles" Live coverage (coverage.py): - count_coverage(): hybrid retrieve + rerank β count chunks above the relevance floor Reuses the RAG pipeline so coverage = "what RAG would consider relevant" API streaming (chat.py): - agent.invoke β agent.stream(stream_mode='updates') via shared trace.log_step - ChatResponse gains sources: list[str] collected structurally from rag_search results - recursion_limit 10 β 50 Scripts: - demo_queries.py: recursion_limit 10 β 50 - build_graph.py, ingest.py: minor pipeline improvements - build_gartner_seeds.py, tag_topics.py: topic seeding tooling Docs: MVP_IMPLEMENTATION_PLAN.md addedc24f0b6
-
feat(agent): implement production-ready LangGraph ReAct agentβ
sourabh gupta- docs/adr/0001-agent-architecture.md: Add ADR detailing prebuilt agent trade-offs - packages/vantage_core/adapters/graph_neo4j.py: Add case-insensitive entities_for_topic search - packages/vantage_core/agent/tools.py: Implement tools (RAG, signals, gaps, graph lookup) and gap_log logging - packages/vantage_core/agent/graph.py: Build ChatOpenAI + tools compiled LangGraph agent with MemorySaver - scripts/agent_cli.py: Add interactive REPL and Mermaid chart exporter39afcd3
-
feat(phase-1): bootstrap project scaffold and connectivity layerβ
sourabh gupta1. Add vantage_core package (config, constants, pyproject.toml, domain + adapters stubs) 2. Add root environment.yaml for conda Python 3.11 environment 3. Add .env.example with all nine required environment variable keys 4. Add Makefile with install, healthcheck, seed, eval, and clean targets 5. Add scripts/healthcheck.py β four-service connectivity gate (Qdrant, Neo4j, OpenAI, Langfuse) 6. Add folder skeleton for apps/, contracts/, and eval/ with .gitkeep72fa63d -
docs: add MASTER_PLAN.md β Vantage agentic market intelligence blueprint
sourabh guptab3f5a94