How aws-samples/text-to-querydsl works
This repository is a notebook-based guide to generating OpenSearch/Elasticsearch DSL queries from natural language with Claude 3, alongside synthetic data generation from supplied schemas. The principal workflow runs in the notebook and uses Amazon Bedrock’s Converse API; the schemas provide domain context. The README documents these capabilities, but no notebook source excerpts were available, so internal call order and finer implementation details are not shown.
Main entry points: text2ES_prompting_guide.ipynb Prompting notebook · healthpost_schema.json Healthpost schema · userprofile_schema.json User profile schema
Components 9
Notebook workflow
- Prompting notebook
text2ES_prompting_guide.ipynb - Synthetic data
text2ES_prompting_guide.ipynb - Query DSL prompt
text2ES_prompting_guide.ipynb
Domain schemas
- Healthpost schema
schemas/healthpost_schema.json - Healthpost schema index
schemas/healthpost_schema_index.json - User profile schema
schemas/userprofile_schema.json - User profile schema index
schemas/userprofile_schema_index.json
External services
- Amazon Bedrock
Other components
- Engineer
Connections 6
- Engineer → Prompting notebook: uses
README.md - Prompting notebook → Healthpost schema: uses schema
README.md - Prompting notebook → User profile schema: uses schema
README.md - Prompting notebook → Synthetic data: generates
README.md - Prompting notebook → Query DSL prompt: prompts for
README.md - Prompting notebook → Amazon Bedrock: uses Converse API
README.md