diff --git a/docs/docs/concepts/architecture.mdx b/docs/docs/concepts/architecture.mdx index 6a76b58fb29..58872f1c724 100644 --- a/docs/docs/concepts/architecture.mdx +++ b/docs/docs/concepts/architecture.mdx @@ -3,7 +3,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; # Architecture -LangChain as a framework consists of a number of packages. +LangChain is a framework that consists of a number of packages. str: Annotating the `user_id` argument with `InjectedToolArg` tells LangChain that this argument should not be exposed as part of the tool's schema. -See [how to pass run time values to tools](https://python.langchain.com/docs/how_to/tool_runtime/) for more details on how to use `InjectedToolArg`. +See [how to pass run time values to tools](/docs/how_to/tool_runtime/) for more details on how to use `InjectedToolArg`. ### RunnableConfig @@ -203,8 +203,8 @@ tools = toolkit.get_tools() See the following resources for more information: - [API Reference for @tool](https://python.langchain.com/api_reference/core/tools/langchain_core.tools.convert.tool.html) -- [How to create custom tools](https://python.langchain.com/docs/how_to/custom_tools/) -- [How to pass run time values to tools](https://python.langchain.com/docs/how_to/tool_runtime/) +- [How to create custom tools](/docs/how_to/custom_tools/) +- [How to pass run time values to tools](/docs/how_to/tool_runtime/) - [All LangChain tool how-to guides](https://docs.langchain.com/docs/how_to/#tools) - [Additional how-to guides that show usage with LangGraph](https://langchain-ai.github.io/langgraph/how-tos/tool-calling/) - Tool integrations, see the [tool integration docs](https://docs.langchain.com/docs/integrations/tools/). diff --git a/docs/docs/concepts/vectorstores.mdx b/docs/docs/concepts/vectorstores.mdx index 44cefe54dee..a42ccf45a41 100644 --- a/docs/docs/concepts/vectorstores.mdx +++ b/docs/docs/concepts/vectorstores.mdx @@ -22,7 +22,7 @@ These vectors, called [embeddings](/docs/concepts/embedding_models/), capture th Vector stores are frequently used to search over unstructured data, such as text, images, and audio, to retrieve relevant information based on semantic similarity rather than exact keyword matches. -![Vectorstores](/img/vectorstores.png) +![Vector stores](/img/vectorstores.png) ## Integrations @@ -97,7 +97,7 @@ vector_store.delete_documents(ids=["doc1"]) ## Search -Vectorstores embed and store the documents that added. +Vector stores embed and store the documents that added. If we pass in a query, the vectorstore will embed the query, perform a similarity search over the embedded documents, and return the most similar ones. This captures two important concepts: first, there needs to be a way to measure the similarity between the query and *any* [embedded](/docs/concepts/embedding_models/) document. Second, there needs to be an algorithm to efficiently perform this similarity search across *all* embedded documents. @@ -156,7 +156,7 @@ This allows structured filters to reduce the size of the similarity search space 1. **Semantic search**: Query the unstructured data directly, often using via embedding or keyword similarity. 2. **Metadata search**: Apply structured query to the metadata, filering specific documents. -Vectorstore support for metadata filtering is typically dependent on the underlying vector store implementation. +Vector store support for metadata filtering is typically dependent on the underlying vector store implementation. Here is example usage with [Pinecone](/docs/integrations/vectorstores/pinecone/#query-directly), showing that we filter for all documents that have the metadata key `source` with value `tweet`.