Skip to content

Commit

Permalink
fix: Small fixes (#101)
Browse files Browse the repository at this point in the history
* fixed error in Retreival chain

* set ollama instruction model url to default value
  • Loading branch information
TesAnti authored Jan 18, 2024
1 parent 7b3d643 commit 2a25610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/LangChain.Core/Chains/Chain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static RetrieveDocumentsChain RetrieveDocuments(
VectorStoreIndexWrapper index,
int amount = 4,
string inputKey = "text",
string outputKey = "text")
string outputKey = "docs")
{
return new RetrieveDocumentsChain(index, inputKey, outputKey, amount);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public class OllamaLanguageModelInstruction : IChatModel
/// <param name="options"></param>
public OllamaLanguageModelInstruction(
string modelName,
string? url = null,
string url = "http://localhost:11434",
OllamaLanguageModelOptions? options = null)
{
_modelName = modelName;
Options = options ?? new OllamaLanguageModelOptions();
_api = new OllamaApiClient(url ?? "http://localhost:11434");
_api = new OllamaApiClient(url);

}
/// <summary>
Expand Down

0 comments on commit 2a25610

Please sign in to comment.