Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs for saving/loading drivers configs #1436

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

collindutter
Copy link
Member

@collindutter collindutter commented Dec 12, 2024

Describe your changes

Update docs for saving/loading drivers configs

Issue ticket number and link

Closes #1425


📚 Documentation preview 📚: https://griptape--1436.org.readthedocs.build//1436/

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

@shhlife shhlife left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Just wondering if it makes sense to use the TextLoader().load() and TextLoader().save() stuff now that we've been talking about adding it?

Comment on lines -5 to -11
custom_config = AmazonBedrockDriversConfig()
dict_config = custom_config.to_dict()
# Use OpenAi for embeddings
dict_config["embedding_driver"] = {
"base_url": None,
"model": "text-embedding-3-small",
"organization": None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any other docs showing this type of example of manipulating the "json" directly? Or maybe its not needed since why would you do that if you are already using python?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this example didn't feel all that necessary to me

@collindutter collindutter merged commit 5f1aebd into main Dec 16, 2024
16 checks passed
@collindutter collindutter deleted the docs/config-saving branch December 16, 2024 19:51
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.

[Docs] Update the saving/loading config doc with code to save/read from disk
3 participants