Skip to content

RAG over a local folder - 'index this folder', then ask about your docs #19

@Dix01

Description

@Dix01

Problem: JARVIS has an embeddings stack for memory but cannot answer questions over your own documents.

Where:

  • Embeddings: jarvis/core/embeddings.py, jarvis/core/semantic_memory.py
  • New plugin: jarvis/plugins/rag_tools.py

Approach: Add index_folder(path, glob) - chunk text files (md/txt/pdf/code), embed, store in a separate table/collection. Add ask_docs(query) that retrieves top-k chunks and injects them into context. Show indexed sources in the HUD.

Acceptance:

  • index_folder ingests a folder of .md/.txt
  • Asking a question retrieves relevant chunks and answers with citations (file + chunk)
  • Falls back to keyword search if embeddings unavailable

Difficulty: large. Flagship feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions