Files
awesome-llm-apps/rag_tutorials
Thejesh a855f2cae2 Fix broken retrieval/setup in four RAG tutorials (#1051)
- corrective_rag: route .pdf URLs to PyPDFLoader (WebBaseLoader was running an
  HTML parser over the default arXiv PDF and embedding decoded garbage); and only
  ingest when the source changes — Streamlit re-runs the script on every question,
  so it was deleting the collection and re-embedding the whole document each time.
- agentic_rag_math_agent: KB gate was 'similarity > 0.', which passes for almost
  any query (cosine sim of OpenAI embeddings is ~always >0), so an arbitrary KB
  answer was served as authoritative with 'do not recalculate'. Require >= 0.80.
- knowledge_graph_rag_citations: semantic_search did Neo4j CONTAINS on the whole
  question, which never matches an entity; tokenize and match any term
  case-insensitively.
- ai_blog_search: create the Qdrant collection before constructing
  QdrantVectorStore (which validates and 404s on a fresh instance).

All four compile-check clean.

Co-authored-by: thejesh23 <thejesh23@users.noreply.github.com>
2026-08-02 14:22:41 -07:00
..
2025-02-16 19:06:55 +01:00
2025-02-16 19:06:55 +01:00
2025-02-13 21:59:11 +01:00