mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-27 01:03:35 +08:00
8 lines
260 B
Python
8 lines
260 B
Python
from chatchat.server.file_rag.retrievers import BaseRetrieverService, VectorstoreRetrieverService
|
|
|
|
Retrivals = {
|
|
"vectorstore": VectorstoreRetrieverService,
|
|
}
|
|
|
|
def get_Retriever(type: str = "vectorstore") -> BaseRetrieverService:
|
|
return Retrivals[type] |