langchaingo
langchaingo copied to clipboard
LangChain for Go, the easiest way to write LLM-based programs in Go
Hello, I'm new to this project. Your wrapped Ollama client is really handy!However, I noticed that there are a few new fields added compared to the latest Ollama documentation. Could...
Might be a stupid question, but when client has a chromadb as: ```go store, errNs := chroma.New( chroma.WithChromaURL(localURL), chroma.WithEmbedder(embeder), chroma.WithDistanceFunction("cosine"), chroma.WithNameSpace(sessionString), ) ``` and eventually: ```go store.AddDocuments(ctx, docs) ``` Should...
### PR Checklist - [ ] Read the [Contributing documentation](https://github.com/tmc/langchaingo/blob/main/CONTRIBUTING.md). - [ ] Read the [Code of conduct documentation](https://github.com/tmc/langchaingo/blob/main/CODE_OF_CONDUCT.md). - [ ] Name your Pull Request title clearly, concisely, and...
When I call this model and correctly pass in a URL of an image, it displays "googleapi: Error 400: Add an image to use models/gemini-1.0-pro-vision-latest, or switch your model to...
I am trying to make context-aware chat, which would work with both openAI and LocalAI (https://github.com/mudler/LocalAI) I have this code: ```go session, err := InitializeNewChatWithContextNoLimit(token,model_name,"localai") if err != nil {...
The "return_direct" function working in python langchain tools, is accomplished in langchaingo? If sure, where is it? If not, how can I use the similar function?
From what I can tell, to use things like Tools, the correct approach is to call GenerateContent on a model - but all of the chains use Call(). Are the...
It is contemplated to implement "MongoDB Chat Memory" in the future or in case there is an example
https://github.com/sashabaranov/go-openai It is pretty feature complete. will save a lot of repetitive code . configure change like this will be totally unnecessary. https://github.com/tmc/langchaingo/pull/117
When I want to define two tools, I will get an error empty response ``` toolList := []tools.Tool{nex_tools.ProductAnalysis{}, nex_tools.SearchKeywords{}} a := NewOpenAIFunctionsAgent(llm, toolList, NewOpenAIOption().WithSystemMessage("you are a helpful assistant"), NewOpenAIOption().WithExtraMessages([]prompts.MessageFormatter{ prompts.NewHumanMessagePromptTemplate("please...