![]() |
VOOZH | about |
dotnet add package LangChain.Providers.Bedrock --version 0.12.3-dev.113
NuGet\Install-Package LangChain.Providers.Bedrock -Version 0.12.3-dev.113
<PackageReference Include="LangChain.Providers.Bedrock" Version="0.12.3-dev.113" />
<PackageVersion Include="LangChain.Providers.Bedrock" Version="0.12.3-dev.113" />Directory.Packages.props
<PackageReference Include="LangChain.Providers.Bedrock" />Project file
paket add LangChain.Providers.Bedrock --version 0.12.3-dev.113
#r "nuget: LangChain.Providers.Bedrock, 0.12.3-dev.113"
#:package LangChain.Providers.Bedrock@0.12.3-dev.113
#addin nuget:?package=LangChain.Providers.Bedrock&version=0.12.3-dev.113&prereleaseInstall as a Cake Addin
#tool nuget:?package=LangChain.Providers.Bedrock&version=0.12.3-dev.113&prereleaseInstall as a Cake Tool
š Nuget package
š dotnet
š License: MIT
š Discord
ā” Building applications with LLMs through composability ā”
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
While the SemanticKernel is good and we will use it wherever possible, we believe that it has many limitations and based on Microsoft technologies. We proceed from the position of the maximum choice of available options and are open to using third-party libraries within individual implementations.
I want to note:
You can use our wiki to get started: https://github.com/tryAGI/LangChain/wiki
Also see for example usage or .
// Price to run from zero(create embeddings and request to LLM): 0,015$
// Price to re-run if database is exists: 0,0004$
// Dependencies: LangChain, LangChain.Databases.Sqlite, LangChain.Sources.Pdf
var gpt35 = new Gpt35TurboModel("OPENAI_API_KEY");
if (!File.Exists("vectors.db"))
{
var documents = await PdfPigPdfSource.FromUriAsync(
new Uri("https://canonburyprimaryschool.co.uk/wp-content/uploads/2016/01/Joanne-K.-Rowling-Harry-Potter-Book-1-Harry-Potter-and-the-Philosophers-Stone-EnglishOnlineClub.com_.pdf"));
await SQLiteVectorStore.CreateIndexFromDocuments(
embeddings: gpt35,
documents: documents,
filename: "vectors.db",
tableName: "vectors",
textSplitter: new RecursiveCharacterTextSplitter(
chunkSize: 200,
chunkOverlap: 50));
}
var database = new SQLiteVectorStore(
filename: "vectors.db",
tableName: "vectors",
embeddings: gpt35);
const string question = "Who was drinking a unicorn blood?";
var similarDocuments = await database.GetSimilarDocuments(question, amount: 5);
var answer = await gpt35.GenerateAsync(
$"""
Use the following pieces of context to answer the question at the end.
If the answer is not in context then just say that you don't know, don't try to make up an answer.
Keep the answer as short as possible.
{similarDocuments.AsString()}
Question: {question}
Helpful Answer:
""", CancellationToken.None).ConfigureAwait(false);
Console.WriteLine($"LLM answer: {answer}"); // The cloaked figure.
Console.WriteLine($"Total usage: {gpt35.TotalUsage}");
<table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"><img src="https://avatars.githubusercontent.com/u/3002068?v=4?s=100" width="100px;" alt="Konstantin S."/><br /><sub><b>Konstantin S.</b></sub></a><br /><a href="#infra-HavenDV" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=HavenDV" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=HavenDV" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/TesAnti"><img src="https://avatars.githubusercontent.com/u/8780022?v=4?s=100" width="100px;" alt="TesAnti"/><br /><sub><b>TesAnti</b></sub></a><br /><a href="#infra-TesAnti" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=TesAnti" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=TesAnti" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/khoroshevj"><img src="https://avatars.githubusercontent.com/u/13628506?v=4?s=100" width="100px;" alt="Khoroshev Evgeniy"/><br /><sub><b>Khoroshev Evgeniy</b></sub></a><br /><a href="#infra-khoroshevj" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=khoroshevj" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=khoroshevj" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/SiegDuch"><img src="https://avatars.githubusercontent.com/u/104992451?v=4?s=100" width="100px;" alt="SiegDuch"/><br /><sub><b>SiegDuch</b></sub></a><br /><a href="#infra-SiegDuch" title="Infrastructure (Hosting, Build-Tools, etc)">š</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/gunpal5"><img src="https://avatars.githubusercontent.com/u/10114874?v=4?s=100" width="100px;" alt="gunpal5"/><br /><sub><b>gunpal5</b></sub></a><br /><a href="#infra-gunpal5" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=gunpal5" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=gunpal5" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/kharedev247"><img src="https://avatars.githubusercontent.com/u/72281217?v=4?s=100" width="100px;" alt="Ketan Khare"/><br /><sub><b>Ketan Khare</b></sub></a><br /><a href="#infra-kharedev247" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=kharedev247" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=kharedev247" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="http://rooc.nl"><img src="https://avatars.githubusercontent.com/u/5981147?v=4?s=100" width="100px;" alt="Roderic Bos"/><br /><sub><b>Roderic Bos</b></sub></a><br /><a href="#infra-IRooc" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=IRooc" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=IRooc" title="Code">š»</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/hiptopjones"><img src="https://avatars.githubusercontent.com/u/3208743?v=4?s=100" width="100px;" alt="Peter James"/><br /><sub><b>Peter James</b></sub></a><br /><a href="#infra-hiptopjones" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=hiptopjones" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=hiptopjones" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/curlyfro"><img src="https://avatars.githubusercontent.com/u/127311?v=4?s=100" width="100px;" alt="Ty Augustine"/><br /><sub><b>Ty Augustine</b></sub></a><br /><a href="#infra-curlyfro" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=curlyfro" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=curlyfro" title="Code">š»</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/ericgreenmix"><img src="https://avatars.githubusercontent.com/u/1297049?v=4?s=100" width="100px;" alt="Eric Green"/><br /><sub><b>Eric Green</b></sub></a><br /><a href="#infra-ericgreenmix" title="Infrastructure (Hosting, Build-Tools, etc)">š</a> <a href="https://github.com/tryAGI/LangChain/commits?author=ericgreenmix" title="Tests">ā ļø</a> <a href="https://github.com/tryAGI/LangChain/commits?author=ericgreenmix" title="Code">š»</a></td> </tr> </tbody> </table>
Priority place for bugs: https://github.com/tryAGI/LangChain/issues
Priority place for ideas and general questions: https://github.com/tryAGI/LangChain/discussions
Discord: https://discord.gg/Ca2xhfBf3v
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.3-dev.113 | 206 | 2/12/2024 |
| 0.12.3-dev.110 | 147 | 2/8/2024 |
| 0.12.3-dev.108 | 141 | 2/7/2024 |
| 0.12.3-dev.107 | 136 | 2/6/2024 |
| 0.12.3-dev.106 | 138 | 2/4/2024 |