Skip to content

feat: Add FAISS vector backend#234

Open
esafwan wants to merge 2 commits into
developfrom
kimi/vector-store-faiss-backend
Open

feat: Add FAISS vector backend#234
esafwan wants to merge 2 commits into
developfrom
kimi/vector-store-faiss-backend

Conversation

@esafwan
Copy link
Copy Markdown
Contributor

@esafwan esafwan commented Mar 30, 2026

Summary

Adds FAISS vector backend using LlamaIndex adapter.

Implementation

  • FAISSBackend - Full KnowledgeBackend implementation
  • In-memory with persistence - Manual save/load to Frappe private files
  • LlamaIndex integration - Uses llama-index-vector-stores-faiss

Files

  • huf/ai/knowledge/backends/faiss_backend.py
  • huf/ai/knowledge/tests/test_faiss_backend.py

Dependencies

Optional: llama-index-vector-stores-faiss, faiss-cpu

Notes

  • In-memory only (fast but no persistence without save)
  • No metadata filtering support (FAISS limitation)
  • Best for research and development

Related

Experimental backend for research use cases.

esafwan added 2 commits March 28, 2026 11:04
- PRD: Programmable Memory & Learning Layer
- DocType designs: Memory Record, Policy, Profile
- Tech specs: Capture/Retrieval, Storage Architecture
- Profiles: Travel Planning, Programming, Documentation
- Implementation plan and project tracking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant