diff --git a/README.md b/README.md index 4a8d2f8..bc6d4f0 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,13 @@ You can previous and download more examples [here](examples/README.md). ## Recent Changelog +### Oct 30, 2024 +* Updated to Griptape Framework v0.34.0 +* **Breaking Changes** + * `AnthropicDriversConfig` node no longer includes Embedding Driver. If you wish to use Claude within a RAG pipeline, build a `Config: Custom Structure` using a Prompt Driver, Embedding Driver, and Vector Store Driver. See the attached image for an example: + + ![alt text](docs/images/anthropic_custom_structure.png) + ### Oct 23, 2024 * Updated Anthropic Claude Prompt Driver to include `claude-3-5-sonnet-20241022` * Updated Anthropic Claude Config to offer option to not use Voyage API for Embedding Driver. Just set `ignore_voyage_embedding_driver` to `True` diff --git a/docs/images/anthropic_custom_structure.png b/docs/images/anthropic_custom_structure.png new file mode 100644 index 0000000..d82729b Binary files /dev/null and b/docs/images/anthropic_custom_structure.png differ diff --git a/js/versions.js b/js/versions.js index 5bee44b..5d8a1c7 100644 --- a/js/versions.js +++ b/js/versions.js @@ -1,11 +1,18 @@ export const versions = { - "version": "0.33.1", - "releaseDate": "2024-10-11", + "version": "0.34.0", + "releaseDate": "2024-10-30", "name": "ComfyUI-Griptape", "description": "Griptape integration for ComfyUI", "author": "Jason Schleifer", "repository": "https://github.com/griptape-ai/ComfyUI-Griptape", "changelog": [ + { + "version": "0.34.0", + "date": "2024-10-30", + "changes": [ + "Update to Griptape v0.34.0", + ] + }, { "version": "0.33.1", "date": "2024-10-23", diff --git a/nodes/config/gtUIAnthropicDriversConfig.py b/nodes/config/gtUIAnthropicDriversConfig.py index b278c11..12970dc 100644 --- a/nodes/config/gtUIAnthropicDriversConfig.py +++ b/nodes/config/gtUIAnthropicDriversConfig.py @@ -4,13 +4,9 @@ # StructureGlobalDriversConfig, from griptape.drivers import ( AnthropicPromptDriver, - DummyEmbeddingDriver, - LocalVectorStoreDriver, - VoyageAiEmbeddingDriver, ) from ..drivers.gtUIAnthropicPromptDriver import gtUIAnthropicPromptDriver -from ..drivers.gtUIVoyageAiEmbeddingDriver import gtUIVoyageAiEmbeddingDriver from .gtUIBaseDriversConfig import ( add_optional_inputs, add_required_inputs, @@ -30,7 +26,7 @@ # Define the list of drivers drivers = [ ("prompt", gtUIAnthropicPromptDriver), - ("embedding", gtUIVoyageAiEmbeddingDriver), + # ("embedding", gtUIVoyageAiEmbeddingDriver), ] @@ -62,27 +58,27 @@ def create( # Create instances of the driver classes prompt_driver_builder = gtUIAnthropicPromptDriver() - embedding_driver_builder = gtUIVoyageAiEmbeddingDriver() + # embedding_driver_builder = gtUIVoyageAiEmbeddingDriver() # Build parameters for drivers prompt_driver_params = prompt_driver_builder.build_params(**kwargs) - embedding_driver_params = embedding_driver_builder.build_params(**kwargs) + # embedding_driver_params = embedding_driver_builder.build_params(**kwargs) # Create Driver Configs drivers_config_params["prompt_driver"] = AnthropicPromptDriver( **prompt_driver_params ) - if embedding_driver_params == {}: - drivers_config_params["embedding_driver"] = VoyageAiEmbeddingDriver( - **embedding_driver_params - ) - else: - drivers_config_params["embedding_driver"] = DummyEmbeddingDriver() + # if embedding_driver_params == {}: + # drivers_config_params["embedding_driver"] = VoyageAiEmbeddingDriver( + # **embedding_driver_params + # ) + # else: + # drivers_config_params["embedding_driver"] = DummyEmbeddingDriver() - drivers_config_params["vector_store_driver"] = LocalVectorStoreDriver( - embedding_driver=drivers_config_params["embedding_driver"] - ) + # drivers_config_params["vector_store_driver"] = LocalVectorStoreDriver( + # embedding_driver=drivers_config_params["embedding_driver"] + # ) try: Defaults.drivers_config = AnthropicDriversConfig(**drivers_config_params) diff --git a/pyproject.toml b/pyproject.toml index 0dfb3c5..ce99920 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ readme = "README.md" [tool.poetry.dependencies] python = "^3.11" python-dotenv = "^1.0.1" -griptape = { version = "^0.33.1", extras = ["all"]} +griptape = { version = "^0.34.0", extras = ["all"]} [tool.poetry.group.dev.dependencies] icecream = "^2.1.3" @@ -26,9 +26,9 @@ priority = "explicit" [project] name = "comfyui-griptape" description = "Griptape LLM(Large Language Model) Nodes for ComfyUI." -version = "1.0.9" +version = "1.0.10" license = {file = "LICENSE"} -dependencies = ["griptape[all]==0.33.1", "python-dotenv"] +dependencies = ["griptape[all]==0.34.0", "python-dotenv"] [project.urls] Repository = "https://github.com/griptape-ai/ComfyUI-Griptape" diff --git a/requirements.txt b/requirements.txt index 6a1cba2..a170adb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -griptape[all]==0.33.1 +griptape[all]==0.34.0 python-dotenv