MCPcopy Create free account

hub / github.com/MobilaName/local-rag-mcp / functions

Functions26 in github.com/MobilaName/local-rag-mcp

↓ 3 callersFunctionbuild_index
Build FAISS index from documents.
src/rag/build_index.py:14
↓ 2 callersFunction_ensure_index_exists
Ensure FAISS index exists, build it if it doesn't.
src/rag/query.py:26
↓ 2 callersMethod_send
Send JSON-RPC message and receive response.
src/mcp/client.py:23
↓ 2 callersFunctionask_llm
Query Ollama LLM.
src/rag/query.py:128
↓ 2 callersFunctionbuild_prompt
Build prompt with retrieved context.
src/rag/query.py:93
↓ 2 callersFunctionchunk_documents
Chunk all documents into smaller pieces.
src/rag/chunk.py:25
↓ 2 callersMethodclose
Clean up resources.
src/assistant.py:161
↓ 2 callersFunctionembed_chunks
Generate embeddings for all chunks.
src/rag/embed.py:13
↓ 2 callersFunctioningest_documents
Ingest all documents from the documents directory.
src/rag/ingest.py:30
↓ 2 callersMethodquery
Answer a question using RAG and optionally MCP tools.
src/assistant.py:120
↓ 2 callersFunctionretrieve
Retrieve relevant chunks for a query.
src/rag/query.py:76
↓ 1 callersMethod_call_mcp_tool
Call an MCP tool with given name and arguments.
src/assistant.py:109
↓ 1 callersMethod_init_mcp
Initialize MCP client.
src/assistant.py:22
↓ 1 callersMethod_llm_decide_mcp_usage
Ask LLM if MCP tools are needed based on query and retrieved contexts.
src/assistant.py:35
↓ 1 callersFunctionask
Answer a question using RAG.
src/rag/query.py:141
↓ 1 callersMethodcall_tool
Call an MCP tool.
src/mcp/client.py:51
↓ 1 callersFunctionchunk_text
Split text into chunks with overlap.
src/rag/chunk.py:12
↓ 1 callersMethodinitialize
Initialize MCP connection.
src/mcp/client.py:35
↓ 1 callersFunctionload_document
Load document content based on file type.
src/rag/ingest.py:14
↓ 1 callersFunctionmain
Main entry point for the assistant.
src/main.py:9
Method__init__
(self)
src/assistant.py:17
Method__init__
(self, cmd)
src/mcp/client.py:9
Methodclose
Close the MCP connection.
src/mcp/client.py:66
Functionlist_documents
Lists all available documents in the knowledge base.
src/mcp/server.py:30
Functionread_document
Reads a document from the knowledge base.
src/mcp/server.py:13
Functionsearch_documents
Searches for documents by name (case-insensitive).
src/mcp/server.py:51