Rag.NET.WebSearch.Tavily
1.3.5
dotnet add package Rag.NET.WebSearch.Tavily --version 1.3.5
NuGet\Install-Package Rag.NET.WebSearch.Tavily -Version 1.3.5
<PackageReference Include="Rag.NET.WebSearch.Tavily" Version="1.3.5" />
<PackageVersion Include="Rag.NET.WebSearch.Tavily" Version="1.3.5" />
<PackageReference Include="Rag.NET.WebSearch.Tavily" />
paket add Rag.NET.WebSearch.Tavily --version 1.3.5
#r "nuget: Rag.NET.WebSearch.Tavily, 1.3.5"
#:package Rag.NET.WebSearch.Tavily@1.3.5
#addin nuget:?package=Rag.NET.WebSearch.Tavily&version=1.3.5
#tool nuget:?package=Rag.NET.WebSearch.Tavily&version=1.3.5
Rag.NET.WebSearch.Tavily
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 74 packages; install only what you call. Documentation · Choosing packages
Tavily web search for Rag.NET's corrective RAG (CRAG): when retrieval scores poorly against your own corpus, the pipeline falls back to (or blends in) live web results instead of answering from weak context.
Install
dotnet add package Rag.NET.WebSearch.Tavily
Setup
using Microsoft.Extensions.DependencyInjection;
using Rag.NET.WebSearch.Tavily;
services.AddTavilyWebSearch(
apiKey: Environment.GetEnvironmentVariable("TAVILY_API_KEY")!);
Example
With the search provider registered, CRAG is switched on per retrieval:
using Rag.NET.Models;
var results = await pipeline.RetrieveAsync("latest stable Kubernetes release", new RetrievalOptions
{
UseCrag = true,
CragScoreThreshold = 0.5f, // fall back below this score
CragFallbackMode = CragFallbackMode.Replace, // or Augment: blend web + corpus
});
Corpus answers stay authoritative when they score well; the web only fills the gaps.
Full guide
| 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Http.Resilience (>= 10.11.0)
- Rag.NET.Abstractions (>= 1.3.5)
- ZeroAlloc.Rest (>= 1.3.4)
- ZeroAlloc.Rest.SystemTextJson (>= 1.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.