LocalEmbedder 0.4.1
Suggested Alternatives
Additional Details
Moved
dotnet add package LocalEmbedder --version 0.4.1
NuGet\Install-Package LocalEmbedder -Version 0.4.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocalEmbedder" Version="0.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LocalEmbedder" Version="0.4.1" />
<PackageReference Include="LocalEmbedder" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LocalEmbedder --version 0.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LocalEmbedder, 0.4.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LocalEmbedder@0.4.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LocalEmbedder&version=0.4.1
#tool nuget:?package=LocalEmbedder&version=0.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
⚠️ This Repository is Archived
This project has been superseded by LocalAI.Embedder.
All future development, bug fixes, and new features will be in the LocalAI project.
Migration Guide
1. Replace Package
# Remove old package
dotnet remove package LocalEmbedder
# Add new package
dotnet add package LocalAI.Embedder
2. Update Namespace
- using LocalEmbedder;
+ using LocalAI.Embedder;
3. Update Code
The API is nearly identical:
// Before (LocalEmbedder)
await using var model = await LocalEmbedder.LoadAsync("all-MiniLM-L6-v2");
float[] embedding = await model.EmbedAsync("Hello, world!");
// After (LocalAI.Embedder)
await using var model = await LocalEmbedder.LoadAsync("default");
float[] embedding = await model.EmbedAsync("Hello, world!");
Model Name Mapping
| LocalEmbedder | LocalAI.Embedder |
|---|---|
all-MiniLM-L6-v2 |
fast |
bge-small-en-v1.5 |
default |
bge-base-en-v1.5 |
quality |
multilingual-e5-base |
multilingual |
Or continue using full model names directly.
Why Migrate?
LocalAI provides a unified suite of local AI capabilities:
| Package | Description |
|---|---|
| LocalAI.Embedder | Text embeddings (successor to this package) |
| LocalAI.Reranker | Semantic reranking for search |
| LocalAI.Generator | Text generation & chat |
| More coming... | OCR, Image captioning, Translation, etc. |
Benefits:
- Active development and maintenance
- More models and capabilities
- Unified API across all local AI tasks
- Better documentation and examples
Links
- New Repository: https://github.com/iyulab/local-ai
- NuGet Package: https://www.nuget.org/packages/LocalAI.Embedder
- Documentation: https://github.com/iyulab/local-ai/blob/main/docs/embedder.md
License
MIT License - see LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.ML.OnnxRuntime (>= 1.23.2)
- System.Numerics.Tensors (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.