Skip to content

Commit

Permalink
Merge branch 'master' into Integration-Needle
Browse files Browse the repository at this point in the history
  • Loading branch information
JANHMS authored Nov 17, 2024
2 parents 6974ed9 + 76e210a commit 09e2b59
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Please see [here](https://python.langchain.com) for full documentation, which in

- [🦜🛠️ LangSmith](https://docs.smith.langchain.com/): Trace and evaluate your language model applications and intelligent agents to help you move from prototype to production.
- [🦜🕸️ LangGraph](https://langchain-ai.github.io/langgraph/): Create stateful, multi-actor applications with LLMs. Integrates smoothly with LangChain, but can be used without it.
- [🦜🏓 LangServe](https://python.langchain.com/docs/langserve): Deploy LangChain runnables and chains as REST APIs.
- [🦜🕸️ LangGraph Platform](https://langchain-ai.github.io/langgraph/concepts/#langgraph-platform): Deploy LLM applications built with LangGraph into production.

## 💁 Contributing

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/how_to/self_query.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"metadata": {},
"outputs": [],
"source": [
"from langchain.chains.query_constructor.base import AttributeInfo\n",
"from langchain.chains.query_constructor.schema import AttributeInfo\n",
"from langchain.retrievers.self_query.base import SelfQueryRetriever\n",
"from langchain_openai import ChatOpenAI\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
},
"outputs": [],
"source": [
"from langchain.chains.query_constructor.base import AttributeInfo\n",
"from langchain.chains.query_constructor.schema import AttributeInfo\n",
"from langchain.retrievers.self_query.base import SelfQueryRetriever\n",
"from langchain_openai import OpenAI\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Concretely, the framework consists of the following open-source libraries:
- **`langchain`**: Chains, agents, and retrieval strategies that make up an application's cognitive architecture.
- **`langchain-community`**: Third-party integrations that are community maintained.
- **[LangGraph](https://langchain-ai.github.io/langgraph)**: Build robust and stateful multi-actor applications with LLMs by modeling steps as edges and nodes in a graph. Integrates smoothly with LangChain, but can be used without it.
- **[LangServe](/docs/langserve)**: Deploy LangChain chains as REST APIs.
- **[LangGraphPlatform](https://langchain-ai.github.io/langgraph/concepts/#langgraph-platform)**: Deploy LLM applications built with LangGraph to production.
- **[LangSmith](https://docs.smith.langchain.com)**: A developer platform that lets you debug, test, evaluate, and monitor LLM applications.


Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/summarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet tiktoken langchain langgraph beautifulsoup4\n",
"%pip install --upgrade --quiet tiktoken langchain langgraph beautifulsoup4 langchain-community\n",
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file\n",
"# import dotenv\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/versions/v0_3/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ should ensure that they are passing Pydantic 2 objects to these APIs rather than
Pydantic 1 objects (created via the `pydantic.v1` namespace of pydantic 2).

:::caution
While `v1` objets may be accepted by some of these APIs, users are advised to
While `v1` objects may be accepted by some of these APIs, users are advised to
use Pydantic 2 objects to avoid future issues.
:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def __init__(
self.is_aoss = _is_aoss_enabled(http_auth=http_auth)
self.client = _get_opensearch_client(opensearch_url, **kwargs)
self.async_client = _get_async_opensearch_client(opensearch_url, **kwargs)
self.engine = kwargs.get("engine")
self.engine = kwargs.get("engine", "nmslib")

@property
def embeddings(self) -> Embeddings:
Expand All @@ -420,7 +420,7 @@ def __add(
index_name = kwargs.get("index_name", self.index_name)
text_field = kwargs.get("text_field", "text")
dim = len(embeddings[0])
engine = kwargs.get("engine", "nmslib")
engine = kwargs.get("engine", self.engine)
space_type = kwargs.get("space_type", "l2")
ef_search = kwargs.get("ef_search", 512)
ef_construction = kwargs.get("ef_construction", 512)
Expand Down Expand Up @@ -461,7 +461,7 @@ async def __aadd(
index_name = kwargs.get("index_name", self.index_name)
text_field = kwargs.get("text_field", "text")
dim = len(embeddings[0])
engine = kwargs.get("engine", "nmslib")
engine = kwargs.get("engine", self.engine)
space_type = kwargs.get("space_type", "l2")
ef_search = kwargs.get("ef_search", 512)
ef_construction = kwargs.get("ef_construction", 512)
Expand Down Expand Up @@ -530,7 +530,7 @@ def create_index(
)

if is_appx_search:
engine = kwargs.get("engine", "nmslib")
engine = kwargs.get("engine", self.engine)
space_type = kwargs.get("space_type", "l2")
ef_search = kwargs.get("ef_search", 512)
ef_construction = kwargs.get("ef_construction", 512)
Expand Down

0 comments on commit 09e2b59

Please sign in to comment.