SphinxConnector.NET 6.4 has been released
We're pleased to announce that SphinxConnector.NET 6.4 is now available via NuGet! You can also download a build from our site, but that only contains a version for .NET Framework 4.6.2 and higher.
This release adds support for Manticore's K-nearest neighbor (KNN) vector search and conversational search.
KNN Vector Search
Manticore's KNN vector search lets you find documents whose embedding vectors are closest to a given query vector. You can use KNN within the fluent API's Where clause either on a property that implements IEnumerable
var results = await fulltextSession.Query<Document>().
Match("Machine Learning").
Where(x => x.EmbeddingVector.Knn("Machine Learning")).
ToListAsync();
or specify the embedding vector's name dynamically:
var results = await fulltextSession.Query<Document>().
Match("Machine Learning").
Where(x => x.Knn("EmbeddingVector", "Machine Learning")).
ToListAsync();
Here the query string "Machine Learning" is embedded and used for the KNN search, but you can also pass a pre-computed vector directly:
float[] queryVector = GetEmbedding("Machine Learning");
var results = await fulltextSession.Query<Document>().
Where(x => x.EmbeddingVector.Knn(queryVector)).
ToListAsync();
Two new functions are also available:
- Function.KnnDist() returns the KNN vector search distance for the current match
- Function.HybridScore() returns the hybrid search RRF fusion score when combining full-text and KNN results
For instance, to order results by their combined hybrid score:
var results = await fulltextSession.Query<Document>().
Match("Machine Learning").
Where(x => x.EmbeddingVector.Knn("Machine Learning")).
Select(x =>
{
Doc = x,
Score = Function.HybridScore())
}
Options(o => o.Set("fusion_method", "'rrf'").
ToListAsync();
Note that the fusion_method option must be set to 'rrf', see Hybrid Search for more information.
Conversational Search
Manticore's conversational search is now accessible via the fluent API:
The Advanced operations API provides methods for creating
using var fulltextSession = fulltextStore.StartSession();
fulltextSession.Advanced.CreateChatModel("assistant", "openrouter:openrouter:nvidia/nemotron-3.5-embed-1b:free");
and dropping chat models.
fulltextSession.Advanced.DropChatModel("assistant");
Sending a conversational search request is done via the Chat method:
var request = new ChatRequest("What are the key benefits of vector search?", "assistant");
var response = await fulltextSession.ChatAsync<Document>(request);
The ChatResponse class contains the LLM-generated answer, the search query used for retrieval, the conversation UUID (which you can reuse for follow-up questions), and the source documents in JSON format.
Other Changes
The BulkCopy class now properly escapes all attribute/column names.
For a full list of changes, please refer to the version history.