Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
akotyla committed Oct 8, 2024
1 parent 7badfa0 commit 651ec3e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def from_config(cls, config: dict) -> "DocumentSearch":
reranker = get_reranker(config.get("reranker"))
vector_store = get_vector_store(config["vector_store"])

providers_config = DocumentProcessorRouter.from_dict_to_providers_config(config.get("providers"))
providers_config_dict: dict = config.get("providers", {})
providers_config = DocumentProcessorRouter.from_dict_to_providers_config(providers_config_dict)
document_processor_router = DocumentProcessorRouter.from_config(providers_config)

return cls(embedder, vector_store, query_rephraser, reranker, document_processor_router)
Expand Down

0 comments on commit 651ec3e

Please sign in to comment.