mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506)
Follow up on https://github.com/langchain-ai/langchain/pull/17467. - Update all references to the Elasticsearch classes to use the partners package. - Deprecate community classes. --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
@@ -5,11 +5,11 @@ from typing import List, Tuple
|
||||
from langchain.retrievers import SelfQueryRetriever
|
||||
from langchain_community.chat_models import ChatOpenAI
|
||||
from langchain_community.embeddings import OpenAIEmbeddings
|
||||
from langchain_community.vectorstores.elasticsearch import ElasticsearchStore
|
||||
from langchain_core.output_parsers import StrOutputParser
|
||||
from langchain_core.prompts import format_document
|
||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||
from langchain_core.runnables import RunnableParallel, RunnablePassthrough
|
||||
from langchain_elasticsearch.vectorstores import ElasticsearchStore
|
||||
|
||||
from .prompts import CONDENSE_QUESTION_PROMPT, DOCUMENT_PROMPT, LLM_CONTEXT_PROMPT
|
||||
|
||||
|
Reference in New Issue
Block a user