🔧 chore(constants.py): import BaseOutputParser from langchain.schema to use it in LANGCHAIN_BASE_TYPES
This commit is contained in:
parent
e9400c04df
commit
840629bef4
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ from langchain.schema import BaseRetriever, Document
|
||||||
from langchain.text_splitter import TextSplitter
|
from langchain.text_splitter import TextSplitter
|
||||||
from langchain.tools import Tool
|
from langchain.tools import Tool
|
||||||
from langchain.vectorstores.base import VectorStore
|
from langchain.vectorstores.base import VectorStore
|
||||||
|
from langchain.schema import BaseOutputParser
|
||||||
|
|
||||||
|
|
||||||
LANGCHAIN_BASE_TYPES = {
|
LANGCHAIN_BASE_TYPES = {
|
||||||
|
|
@ -20,6 +21,7 @@ LANGCHAIN_BASE_TYPES = {
|
||||||
"VectorStore": VectorStore,
|
"VectorStore": VectorStore,
|
||||||
"Embeddings": Embeddings,
|
"Embeddings": Embeddings,
|
||||||
"BaseRetriever": BaseRetriever,
|
"BaseRetriever": BaseRetriever,
|
||||||
|
"BaseOutputParser": BaseOutputParser,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Langchain base types plus Python base types
|
# Langchain base types plus Python base types
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue