Repository navigation
Add agentic search - #146
Open
esmarkowski wants to merge 2 commits into
Open
esmarkowski wants to merge 2 commits into
esmarkowski wants to merge 2 commits into
Conversation
`Post.agentic("red shoes", query_fields: [:title], memory_id: "m1")` builds
the top level agentic query clause. A later call replaces an earlier one,
since OpenSearch only accepts agentic as the top level query.
Pipeline processors resolve `agent:` to `agent_id`, so
`request_processor :agentic_query_translator, agent: :product_search_agent`
points the translator at a Stretchy agent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The machine learning guide covers model groups, agents, agentic search and the agent rake tasks, and notes that ML is OpenSearch-only, register no longer deploys and deployed? is not cached. The pipelines guide covers search pipelines, default_search_pipeline, search_pipeline and the Stretchy::Pipeline deprecation. Adds a RAG agent example. The README points at the OpenSearch Query DSL instead of elasticsearch-persistence and notes the opensearch-ruby 4 and json < 3 requirements. The LLM example calls predict_model, since opensearch-ruby 4's predict needs an algorithm name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relations can now build the top-level
agenticquery clause. Agentic search runs through a search pipeline whoseagentic_query_translatorprocessor points at a Stretchy agent. Pipeline processors resolveagent:toagent_id, the same way they resolvemodel:tomodel_id.A later
agenticcall replaces an earlier one, because OpenSearch only acceptsagenticas the top-level query. OpenSearch 3.9.0 parses the clause and asks for the translator processor. A full run needs an LLM connector and was not exercised.Docs changes:
json < 3requirements.Specs pass on OpenSearch 3.9.0, OpenSearch 2.19.7 and Elasticsearch 8.12.2.
Closes #139