Skip to content

Support LLM selection in Sycamore Query Client.#935

Merged
mdwelsh merged 7 commits into
mainfrom
matt/luna-bedrock
Oct 17, 2024
Merged

Support LLM selection in Sycamore Query Client.#935
mdwelsh merged 7 commits into
mainfrom
matt/luna-bedrock

Conversation

@mdwelsh
Copy link
Copy Markdown
Contributor

@mdwelsh mdwelsh commented Oct 16, 2024

This PR adds support for selecting an LLM by name in Sycamore Query Client, and adding it as an --llm argument to client.py and apps/queryeval.

To make this flexible I added a function get_llm which takes in a string model identifier and returns a function that can be called to create the model instance.

I also renamed s3_cache_path to llm_cache_dir to be consistent with the query result cache.

@mdwelsh mdwelsh requested a review from baitsguy October 16, 2024 22:12
Comment thread lib/sycamore/sycamore/query/client.py
@mdwelsh mdwelsh enabled auto-merge (squash) October 17, 2024 01:05
@mdwelsh mdwelsh merged commit 2ee0bd3 into main Oct 17, 2024
@HenryL27 HenryL27 deleted the matt/luna-bedrock branch August 30, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants