Tagged: rag

6 posts

Cross-Encoder Reranking in Python without PyTorch

Rerank search results with ms-marco-MiniLM-L-6-v2 from Python, without sentence-transformers or PyTorch. The same scores as CrossEncoder, a 23 MB install, and loaded in 0.08 seconds. With an example of what a reranker fixes that embeddings get wrong.

Read more

Local Semantic Search in Python

Index a directory, then search it by keyword, by meaning, or both, from Python. One pip install with no dependencies, running on your own machine, with a worked example of where hybrid search goes wrong and what fixes it.

Read more

RAG in C# without a Vector Database

Build a retrieval-augmented generation pipeline in C#: index documents, search them, rerank the hits, and answer with a local LLM. One NuGet package, start to finish, with every stage running on your own machine.

Read more

Reranking in C# with a Cross-Encoder

Improve search relevance in .NET with cross-encoder reranking. Rescore your existing search results from Elasticsearch, SQL LIKE, or vector search, locally in C# and in your own process.

Read more