Remove some commented out code + add condition for the execution of make publish

This commit is contained in:
Gustavo Schaedler 2023-06-09 20:09:25 +01:00
commit 8a08ebdbe7
4 changed files with 22 additions and 10 deletions

View file

@ -18,7 +18,6 @@ chains:
- SQLDatabaseChain
- RetrievalQA
- RetrievalQAWithSourcesChain
- QAWithSourcesChain
- ConversationalRetrievalChain
- CombineDocsChain
documentloaders:

View file

@ -53,7 +53,7 @@ class Vertex:
if "Tool" not in self.output or template_dict["_type"].islower()
else template_dict["_type"]
)
# self.vertex_type = template_dict["_type"]
if self.base_type is None:
for base_type, value in ALL_TYPES_DICT.items():
if self.vertex_type in value:

View file

@ -60,12 +60,6 @@ class ChainCreator(LangChainTypeCreator):
logger.error(f"Chain {name} not loaded: {exc}")
return None
# def to_list(self) -> List[str]:
# custom_chains = list(get_custom_nodes("chains").keys())
# default_chains = list(self.type_to_loader_dict.keys())
# return default_chains + custom_chains
def to_list(self) -> List[str]:
names = []
for _, chain in self.type_to_loader_dict.items():