Skip to content

Commit

Permalink
Merge branch 'main' into pypdf-rm-deprecated-params
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jun 21, 2024
2 parents 37389cf + f5a34d4 commit f36729a
Show file tree
Hide file tree
Showing 15 changed files with 82 additions and 1,366 deletions.
2 changes: 0 additions & 2 deletions docs/pydoc/config/generators_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ loaders:
[
"azure",
"hugging_face_local",
"hugging_face_tgi",
"hugging_face_api",
"openai",
"chat/azure",
"chat/hugging_face_local",
"chat/hugging_face_tgi",
"chat/hugging_face_api",
"chat/openai",
]
Expand Down
2 changes: 1 addition & 1 deletion haystack/components/caching/cache_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run(self, items: List[Any]):
misses = []

for item in items:
filters = {self.cache_field: item}
filters = {"field": self.cache_field, "operator": "==", "value": item}
found = self.document_store.filter_documents(filters=filters)
if found:
found_documents.extend(found)
Expand Down
9 changes: 1 addition & 8 deletions haystack/components/generators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
)
from haystack.components.generators.azure import AzureOpenAIGenerator
from haystack.components.generators.hugging_face_local import HuggingFaceLocalGenerator
from haystack.components.generators.hugging_face_tgi import HuggingFaceTGIGenerator
from haystack.components.generators.hugging_face_api import HuggingFaceAPIGenerator

__all__ = [
"HuggingFaceLocalGenerator",
"HuggingFaceTGIGenerator",
"HuggingFaceAPIGenerator",
"OpenAIGenerator",
"AzureOpenAIGenerator",
]
__all__ = ["HuggingFaceLocalGenerator", "HuggingFaceAPIGenerator", "OpenAIGenerator", "AzureOpenAIGenerator"]
2 changes: 0 additions & 2 deletions haystack/components/generators/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
)
from haystack.components.generators.chat.azure import AzureOpenAIChatGenerator
from haystack.components.generators.chat.hugging_face_local import HuggingFaceLocalChatGenerator
from haystack.components.generators.chat.hugging_face_tgi import HuggingFaceTGIChatGenerator
from haystack.components.generators.chat.hugging_face_api import HuggingFaceAPIChatGenerator

__all__ = [
"HuggingFaceLocalChatGenerator",
"HuggingFaceTGIChatGenerator",
"HuggingFaceAPIChatGenerator",
"OpenAIChatGenerator",
"AzureOpenAIChatGenerator",
Expand Down
332 changes: 0 additions & 332 deletions haystack/components/generators/chat/hugging_face_tgi.py

This file was deleted.

293 changes: 0 additions & 293 deletions haystack/components/generators/hugging_face_tgi.py

This file was deleted.

Loading

0 comments on commit f36729a

Please sign in to comment.