Skip to content

Commit

Permalink
chore: Remove deprecated DynamicPromptBuilder and `DynamicChatPromp…
Browse files Browse the repository at this point in the history
…tBuilder` components (deepset-ai#8085)
  • Loading branch information
shadeMe authored Jul 26, 2024
1 parent f372ca4 commit b2aef21
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 771 deletions.
9 changes: 1 addition & 8 deletions docs/pydoc/config/builders_api.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack/components/builders]
modules:
[
"answer_builder",
"prompt_builder",
"dynamic_prompt_builder",
"dynamic_chat_prompt_builder",
"chat_prompt_builder",
]
modules: ["answer_builder", "prompt_builder", "chat_prompt_builder"]
ignore_when_discovered: ["__init__"]
processors:
- type: filter
Expand Down
4 changes: 1 addition & 3 deletions haystack/components/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from haystack.components.builders.answer_builder import AnswerBuilder
from haystack.components.builders.chat_prompt_builder import ChatPromptBuilder
from haystack.components.builders.dynamic_chat_prompt_builder import DynamicChatPromptBuilder
from haystack.components.builders.dynamic_prompt_builder import DynamicPromptBuilder
from haystack.components.builders.prompt_builder import PromptBuilder

__all__ = ["AnswerBuilder", "PromptBuilder", "DynamicPromptBuilder", "DynamicChatPromptBuilder", "ChatPromptBuilder"]
__all__ = ["AnswerBuilder", "PromptBuilder", "ChatPromptBuilder"]
190 changes: 0 additions & 190 deletions haystack/components/builders/dynamic_chat_prompt_builder.py

This file was deleted.

169 changes: 0 additions & 169 deletions haystack/components/builders/dynamic_prompt_builder.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
upgrade:
- |
Removed the deprecated `DynamicPromptBuilder` and `DynamicChatPromptBuilder` components. Use `PromptBuilder` and `ChatPromptBuilder` instead.
Loading

0 comments on commit b2aef21

Please sign in to comment.