pycall.rb
Calling Python functions from the Ruby language (by mrkn)
ruby-openai
OpenAI API + Ruby! 🤖❤️ Now with Assistants v2, Batches & Ollama/Groq 🚀 (by alexrudall)
pycall.rb | ruby-openai | |
---|---|---|
6 | 12 | |
1,030 | 2,455 | |
- | - | |
6.0 | 9.5 | |
7 months ago | 7 days ago | |
C | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pycall.rb
Posts with mentions or reviews of pycall.rb.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-08.
- Call Python functions from the Ruby language
-
RFC: Run Python from Ruby and Ruby from Python
Yeah, I know there are few libraries that do similar things: pycall.rb and rb_call, and there is also rubypython, but it's not supported and doesn't work with Python 3. I used pycall to create matplotlib charts from Ruby, it's great, and I'm gonna use part of its code, type conversion implementation, for example. But I don't think it's enough, it's like a one way bridge, I want more, I want to call Python from Ruby and Ruby from Python at the same time: create an Airfow PythonOperator, invoke Ruby code inside, store some value into XCom. What about rb_call, I don't like how it's implemented at all, it starts a separate process and serializes data using MessagePack RPC, so you can't use callbacks. It's not even possible to pass a Python object as an argument or call Ruby method that requires a block. And of course it's not effective.
-
Building an app around a LLM, Rails + Python or just Python?
I have build a rails app that uses openai gem and it's working very well. For more advanced things I am exploring Pycall: https://github.com/mrkn/pycall.rb to call python functions. Don't have any experience though.
-
What's the easiest way to interface my Rails app with a Python library?
I have use this before cool and easy also could run in heroku ()( for my case https://github.com/mrkn/pycall.rb
-
Help!
From docs. I was able to install matplotlib (without --pre):
-
Tips for collaborating with datascience teams
We use https://github.com/mrkn/pycall.rb extensively to interface with python libraries. So far, the only problem we have is memory leaks in python, but we mitigated the problem by isolating the leaking parts in a separate process.
ruby-openai
Posts with mentions or reviews of ruby-openai.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-05-03.
-
tiktoken_ruby VS ruby-openai - a user suggested alternative
2 projects | 3 May 2024
If you are using Open AI's API, this tokenizer is more accurate than the one coming with `ruby-openai` gem.
-
ruby and ML/AI chatgpt
ruby-openai
-
Building an app around a LLM, Rails + Python or just Python?
If you can just interact with OpenAI api directly without langchain then that eliminates need for python. Here’s a gem for interacting with the OpenAI api : https://github.com/alexrudall/ruby-openai
- Use OpenAI embeddings with Rails?
-
I need help building a Chatbot using Openai Chatgpt API
There is a gem developed by Alex - https://github.com/alexrudall/ruby-openai.
-
Looking for self-hosted tools with OpenAI API support
I've been playing with ruby-openai, a Ruby gem (ie, library) that interfaces with the OpenAI API. I'm building myself a small movie-recommendation tool, just a personal need, as well as to teach myself how this stuff works. It's unlikely I'll ever build it into a proper app, as I'm okay with interacting in the shell and with text files, versus a web-based thing. But if there's interest, I'll push my tool up to Github.
-
Creating AI assistant with GPT and Ruby and Redis using embeddings
Can use https://github.com/alexrudall/ruby-openai to do this sort of thing also :)
- OpenAI API and Ruby Now with ChatGPT
-
ChatGPT and Whisper APIs
Added to the Ruby library here if any Rubyists interested! https://github.com/alexrudall/ruby-openai
- development around data and AI libraries in the Ruby world
What are some alternatives?
When comparing pycall.rb and ruby-openai you can also consider the following projects:
hashpling - hashpling allows you to use shebang on non-UNIX platform
langchainrb - Build LLM-powered applications in Ruby
data-science-with-ruby - Practical Data Science with Ruby based tools.
chat-with-gpt - An open-source ChatGPT app with a voice
soloud - Free, easy, portable audio engine for games
boxcars - Building applications with composability using Boxcars with LLM's. Inspired by LangChain.
discourse-ai
openai-python - The official Python library for the OpenAI API
rubypython - An in-process between Ruby and Python. Soon changing repo address.
gpt-language-learning-experiments - An exploration of new ways to learn a language using GPT3 and friends.
pycall.rb vs hashpling
ruby-openai vs langchainrb
pycall.rb vs data-science-with-ruby
ruby-openai vs chat-with-gpt
pycall.rb vs soloud
ruby-openai vs boxcars
pycall.rb vs boxcars
ruby-openai vs discourse-ai
pycall.rb vs langchainrb
ruby-openai vs openai-python
pycall.rb vs rubypython
ruby-openai vs gpt-language-learning-experiments