langchainrb
langchainrb copied to clipboard
Build LLM-powered applications in Ruby
Hello! Thank you for this awesome gem! I'm currently playing with it and i've seen Hugging face ruby gem can now support custom embedding models: see: https://github.com/alchaplinsky/hugging-face/commit/bee85a443bd085acbc61ad8926afa574aadfc7a4 I've added the...
I'm having issues authenticating with Vertex with APPLICATION_DEFAULT_CREDENTIALS. I found a simple fix though. FROM @authorizer = ::Google::Auth.get_application_default TO @authorizer = ::Google::Auth.get_application_default(scope: 'https://www.googleapis.com/auth/cloud-platform')
### Description Currently OpenAI is the only supported LLM by `Langchain::Assistant`. We'd like to expand the list of support LLMs. ### Tasks - [x] Add support for Google Gemini (https://github.com/andreibondarev/langchainrb/pull/513)...
At the moment I am using the chat API with Ollama which is requiring me to maintain an array of inputs and responses in my application code and pass the...
This PR is an attempt to make streaming working in Assistants. Feel free to create a new PR or push to the same branch if you want to try different...
### Description The current search Tool utilizes the `google_search_results` gem which is a [very wonky experience](https://github.com/andreibondarev/langchainrb/blob/main/lib/langchain/tool/google_search/google_search.rb#L52-L127). We'd like to use something cleaner. What's been proposed was using Tavily AI. ###...
# Description In OpenAI and Ollama, it is possible to specify `system`, `user`, and `assistant` as roles. But in Anthropic, only `user` and `assistant` can be specified, and an error...
fix #603 As I wrote in the Issue proposal, I took the role: system message and merged it with the top-level system parameter.
This PR introduces a new parameter `response_schema:` to the LLM `chat()` methods that, using Function Calling, forces the response to adhere to a specific schema. Example usage: ```ruby json_schema =...