memora
Memora — A self-hosted RAG (Retrieval-Augmented Generation) personal knowledge base. Built with FastAPI + Qdrant + DashScope/OpenAI Embedding + DeepSeek/OpenAI LLM. Supports semantic vector search, AI-powered Q&A with source citations, hybrid retrieval (dense + BM42 sparse + rerank), and full document management (upload PDF/DOCX/TXT/MD, create, list, detail). Use when: user asks about stored documents, wants to search/upload/create documents, or needs AI-organized answers from their knowledge base. NOT for: general chat, real-time news, tasks unrelated to the knowledge base.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- memora
- metadata
- { "openclaw": { "requires": { "env": [ "KB_API_BASE" ] } } }
- description
- Memora — A self-hosted RAG (Retrieval-Augmented Generation) personal knowledge base. Built with FastAPI + Qdrant + DashScope/OpenAI Embedding + DeepSeek/OpenAI LLM. Supports semantic vector search, AI-powered Q&A with source citations, hybrid retrieval (dense + BM42 sparse + rerank), and full document management (upload PDF/DOCX/TXT/MD, create, list, detail). Use when: user asks about stored documents, wants to search/upload/create documents, or needs AI-organized answers from their knowledge base. NOT for: general chat, real-time news, tasks unrelated to the knowledge base.
03 SKILL.md 正文
Memora — Personal Knowledge Base (RAG)
A self-hosted Retrieval-Augmented Generation (RAG) personal knowledge base that lets your AI assistant search, query, and manage your private documents.
Tech Stack
- Backend: FastAPI (Python)
- Vector Database: Qdrant (dense + sparse vectors)
- Embedding: DashScope
text-embedding-v4/ OpenAI compatible - LLM: DeepSeek / OpenAI compatible
- Retrieval: Hybrid search (dense vectors + BM42 sparse vectors + Qwen3 Rerank)
- Metadata Store: MySQL
- Skill Client: Zero-dependency Python (stdlib only —
urllib,json)
Features
- Semantic Search — Find documents by meaning using vector similarity, not just keywords
- AI-Powered Q&A — Ask a question, get an LLM-generated answer grounded in your documents with source citations
- Hybrid Retrieval — Dense embedding + BM42 sparse vectors + reranking for optimal recall and precision
- Document Upload — Ingest PDF, DOCX, TXT, and Markdown files with automatic chunking and vectorization
- Document Creation — Create text documents directly from the agent
- Document Management — List, view details, and organize your knowledge base
When to Run
- User asks a question that may be answered by stored documents
- User wants to search the knowledge base
- User wants to list documents or view document details
- User wants to upload a file or create a new document
- User needs AI-organized answers on a topic from their personal knowledge
Workflow
Upload a File
- Get the file path and title from the user
- Run:
python scripts/kb_api.py upload "{absolute_file_path}" "{document_title}" - Supported formats:
.txt.pdf.docx.md - Returns upload result with
document_id
Create a Text Document
- Get the title and text content from the user
- Run:
python scripts/kb_api.py create "{title}" "{content}" - Returns creation result with
document_id
Search with AI Answer (RAG)
- Extract the user's query
- Run:
python scripts/kb_api.py search_answer "{query}" - Parse the returned JSON: extract
answerand source documents fromsources - Present the answer with source citations
Search Documents Only
- Extract the user's search keywords
- Run:
python scripts/kb_api.py search "{keywords}" - Parse and display the ranked search results
List All Documents
- Run:
python scripts/kb_api.py list - Display the document list
View Document Details
- Get the document ID
- Run:
python scripts/kb_api.py detail "{document_id}" - Display the document content
Output Format
Upload / Create:
Document "{title}" has been added to the knowledge base (ID: {document_id})
Search with AI Answer:
Knowledge Base Query Result
{AI-generated answer based on retrieved documents}
Sources:
- {document_title} (relevance: {score})
List Documents:
Documents ({n} total)
- {title} — {created_at}
- ...
Configuration
Set the environment variable KB_API_BASE to point to the Memora backend.
Default: http://127.0.0.1:8080
Source code & setup guide: https://github.com/zzlzzlzzl15/Memora
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.