Using ruby_llm for PDF Question-Answering with Precise Source Locations #53
Replies: 2 comments
-
@elalemanyo for developing a RAG system, you can use the following gems in my experience.
I don't know which database you are using or intend to use, but I will recommend pgvector for storing your embeddings if you using postrgres PS: I'm yet to use ruby_llm gem, but I don't think it's going to be any different from using open_router or any of the several ruby llm integration. I hope this is helpful |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's an issue about support for Anthropic Citations, hope that helps! #52 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m exploring the idea of using
ruby_llm
to enable question-answering on a set of PDFs while also providing precise source locations (e.g., “this answer came from page 7, paragraph 2”).I reached out to @crmne, who shared some great insights:
pgvector
).LLM
to answer questions based on retrieved chunks while referencing the source.I’m curious — has anyone here built something like this before using ruby_llm or a similar setup?
What tools or libraries did you find most useful for PDF chunking and embedding in a Rails-based project?
Are there any recommended strategies to ensure accurate source attribution in the responses?
Would love to hear about any experiences, challenges, or best practices! 🚀
Beta Was this translation helpful? Give feedback.
All reactions