Llama2 Embedding Server
FreeLlama2 Embeddings FastAPI Service using LangChain 
About Llama2 Embedding Server
Swiss Army Llama is a FastAPI service that provides REST endpoints for semantic text search using precomputed embeddings. It supports embedding extraction from PDFs (including OCR), Word files, audio (via Whisper transcription), and plain text. Embeddings are cached in SQLite to avoid recomputation, and optional RAM disks speed up model loading. The service leverages the high-performance Rust library fast_vector_similarity for advanced similarity measures (spearman_rho, kendall_tau, etc.) and FAISS for vector search. It also includes endpoints for text completions using local LLMs via llama_cpp. Designed for easy setup and integration with a Swagger UI.
Key Features
Pros & Cons
- Comprehensive file type support (PDF, Word, audio, text)
- Advanced similarity measures beyond cosine similarity
- Caching reduces redundant computation
- Fast vector search with FAISS
- Automatic OCR for scanned PDFs
- Easy setup with Docker and install scripts
- Requires local setup and LLM model files (not a hosted service)
- Performance depends on local hardware (GPU recommended for LLMs)
- Documentation may be limited beyond README
- Repo name (swiss_army_llama) might cause confusion with embedding-specific expectations