From 8a28fdf497dc9e49a0f4b53368e2f967b9165c78 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 29 Jun 2023 09:54:38 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(config.yaml):=20add=20docum?= =?UTF-8?q?entation=20link=20for=20MultiQueryRetriever=20=F0=9F=94=A7=20ch?= =?UTF-8?q?ore(settings.py):=20add=20retrievers=20attribute=20to=20Setting?= =?UTF-8?q?s=20class=20The=20config.yaml=20file=20now=20includes=20a=20doc?= =?UTF-8?q?umentation=20link=20for=20the=20MultiQueryRetriever=20in=20the?= =?UTF-8?q?=20retrievers=20section.=20This=20link=20provides=20additional?= =?UTF-8?q?=20information=20on=20how=20to=20use=20the=20MultiQueryRetrieve?= =?UTF-8?q?r.=20In=20the=20settings.py=20file,=20the=20Settings=20class=20?= =?UTF-8?q?now=20includes=20a=20retrievers=20attribute=20to=20store=20retr?= =?UTF-8?q?iever-related=20settings.=20This=20allows=20for=20easier=20mana?= =?UTF-8?q?gement=20and=20configuration=20of=20retrievers=20in=20the=20app?= =?UTF-8?q?lication.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/config.yaml | 3 +++ src/backend/langflow/settings.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/backend/langflow/config.yaml b/src/backend/langflow/config.yaml index 14d81308a..4bb93680f 100644 --- a/src/backend/langflow/config.yaml +++ b/src/backend/langflow/config.yaml @@ -230,6 +230,9 @@ utilities: documentation: "" WolframAlphaAPIWrapper: documentation: "" +retrievers: + MultiQueryRetriever: + documentation: "https://python.langchain.com/docs/modules/data_connection/retrievers/how_to/MultiQueryRetriever" vectorstores: Chroma: documentation: "https://python.langchain.com/docs/modules/data_connection/vectorstores/integrations/chroma" diff --git a/src/backend/langflow/settings.py b/src/backend/langflow/settings.py index f153ba706..d2de4f671 100644 --- a/src/backend/langflow/settings.py +++ b/src/backend/langflow/settings.py @@ -15,6 +15,7 @@ class Settings(BaseSettings): vectorstores: dict = {} documentloaders: dict = {} wrappers: dict = {} + retrievers: dict = {} toolkits: dict = {} textsplitters: dict = {} utilities: dict = {} @@ -47,6 +48,11 @@ class Settings(BaseSettings): self.toolkits = new_settings.toolkits or {} self.textsplitters = new_settings.textsplitters or {} self.utilities = new_settings.utilities or {} + self.embeddings = new_settings.embeddings or {} + self.vectorstores = new_settings.vectorstores or {} + self.documentloaders = new_settings.documentloaders or {} + self.retrievers = new_settings.retrievers or {} + self.dev = dev def update_settings(self, **kwargs):