Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hartator
on March 15, 2025
|
parent
|
context
|
favorite
| on:
RubyLLM: A delightful Ruby way to work with AI
Super interesting gem!
`Document.search(query).limit(limit).map(&:title)` how do you defined the documents to search on?
breckenedge
on March 15, 2025
[–]
That’s an example of what your code could look like. For example, you might have a Rails app with a Document model and have added search to that model via Searchkick. Then this code is called by the library to execute a search.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
`Document.search(query).limit(limit).map(&:title)` how do you defined the documents to search on?