diff --git a/docs/docs/components/agents.mdx b/docs/docs/components/agents.mdx index c9d88f331..f8917e4e2 100644 --- a/docs/docs/components/agents.mdx +++ b/docs/docs/components/agents.mdx @@ -8,84 +8,83 @@ import Admonition from '@theme/Admonition';
- -Agents are components that use reasoning to make decisions and take actions, designed to autonomously perform tasks or provide services with some degree of “freedom” (or agency). They combine the power of LLM chaining processes with access to external tools such as APIs to interact with applications and accomplish tasks. +Agents are components that use reasoning to make decisions and take actions, designed to autonomously perform tasks or provide services with some degree of agency. LLM chains can only perform hardcoded sequences of actions, while agents use LLMs to reason through which actions to take, and in which order. --- ### AgentInitializer -The `AgentInitializer` component is a quick way to construct a zero-shot agent from a language model (LLM) and tools. +The `AgentInitializer` constructs a zero-shot agent from a language model (LLM) and additional tools. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `AgentInitializer`. -- **Memory:** Used to add memory functionality to an agent. It allows the agent to store and retrieve information from previous conversations. -- **Tools:** Tools that the agent will have access to. -- **Agent:** The type of agent to be instantiated. Current supported: `zero-shot-react-description`, `react-docstore`, `self-ask-with-search,conversational-react-description` and `openai-functions`. +- **LLM:** The language model used by the `AgentInitializer`. +- **Memory:** Enables memory functionality, allowing the agent to recall and use information from previous interactions. +- **Tools:** The tools available to the agent. +- **Agent:** Specifies the type of agent to instantiate. Currently supported types include `zero-shot-react-description`, `react-docstore`, `self-ask-with-search`, `conversational-react-description`, and `openai-functions`. --- ### CSVAgent -A `CSVAgent` is an agent that is designed to interact with CSV (Comma-Separated Values) files. CSV files are a common format for storing tabular data, where each row represents a record and each column represents a field. The CSV agent can perform various tasks, such as reading and writing CSV files, processing the data, and generating tables. It can extract information from the CSV file, manipulate the data, and perform operations like filtering, sorting, and aggregating. +The `CSVAgent` interacts with CSV (Comma-Separated Values) files, commonly used to store tabular data. Each row in a CSV file represents a record, and each column represents a field. The CSV agent can read and write CSV files, process data, and perform tasks such as filtering, sorting, and aggregating. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `CSVAgent`. -- **path:** The file path to the CSV data. +- **LLM:** The language model used by the `CSVAgent`. +- **Path:** The file path to the CSV data. --- ### JSONAgent -The `JSONAgent` deals with JSON (JavaScript Object Notation) data. Similar to the CSVAgent, it works with a language model (LLM) and a toolkit designed for JSON manipulation. This agent can iteratively explore a JSON blob to find the information needed to answer the user's question. It can list keys, get values, and navigate through the structure of the JSON object. +The `JSONAgent` manages JSON (JavaScript Object Notation) data. This agent, like the CSVAgent, uses a language model (LLM) and a toolkit for JSON manipulation. It can explore a JSON blob to extract needed information, list keys, retrieve values, and navigate through the JSON structure. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `JSONAgent`. -- **Toolkit:** Toolkit that the agent will have access to. +- **LLM:** The language model used by the `JSONAgent`. +- **Toolkit:** The toolkit available to the agent. --- ### SQLAgent -A `SQLAgent` is an agent that is designed to interact with SQL databases. It is capable of performing various tasks, such as querying the database, retrieving data, and executing SQL statements. The agent can provide information about the structure of the database, including the tables and their schemas. It can also perform operations like inserting, updating, and deleting data in the database. The SQL agent is a helpful tool for managing and working with SQL databases efficiently. +The `SQLAgent` interacts with SQL databases, capable of querying, retrieving data, and executing SQL statements. It provides insights into the database structure, including tables and schemas, and can perform operations such as insertions, updates, and deletions. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `SQLAgent`. -- **database_uri:** A string representing the connection URI for the SQL database. +- **LLM:** The language model used by the `SQLAgent`. +- **Database URI:** The connection URI for the SQL database. --- ### VectorStoreAgent -The `VectorStoreAgent` is designed to work with a vector store – a data structure used for storing and querying vector-based representations of data. The `VectorStoreAgent` can query the vector store to find relevant information based on user inputs. +The `VectorStoreAgent` operates with a vector store, which is a data structure for storing and querying vector-based data representations. This agent can query the vector store to find information relevant to user inputs. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `VectorStoreAgent`. -- **Vector Store Info:** `VectorStoreInfo` to use in the `VectorStoreAgent`. +- **LLM:** The language model used by the `VectorStoreAgent`. +- **Vector Store Info:** The `VectorStoreInfo` used by the agent. --- ### VectorStoreRouterAgent -The `VectorStoreRouterAgent` is a custom agent that takes a vector store router as input. It is typically used when there’s a need to retrieve information from multiple vector stores. These can be connected through a `VectorStoreRouterToolkit` and sent over to the `VectorStoreRouterAgent`. An agent configured with multiple vector stores can route queries to the appropriate store based on the context. +The `VectorStoreRouterAgent` is a custom agent that uses a vector store router. It is typically used to retrieve information from multiple vector stores connected through a `VectorStoreRouterToolkit`. -**Params** +**Parameters**: -- **LLM:** Language Model to use in the `VectorStoreRouterAgent`. -- **Vector Store Router Toolkit:** `VectorStoreRouterToolkit` to use in the `VectorStoreRouterAgent`. +- **LLM:** The language model used by the `VectorStoreRouterAgent`. +- **Vector Store Router Toolkit:** The toolkit used by the agent. --- ### ZeroShotAgent -The `ZeroShotAgent` is an agent that uses the ReAct framework to determine which tool to use based solely on the tool's description. It can be configured with any number of tools and requires a description for each tool. The agent is designed to be the most general-purpose action agent. It uses an `LLMChain` to determine which actions to take and in what order. +The `ZeroShotAgent` uses the ReAct framework to decide which tool to use based on the tool's description. It is the most general-purpose action agent, capable of determining the necessary actions and their sequence through an `LLMChain`. -**Params** +**Parameters**: -- **Allowed Tools:** Tools that the agent will have access to. -- **LLM Chain:** LLM Chain to be used by the agent. \ No newline at end of file +- **Allowed Tools:** The tools accessible to the agent. +- **LLM Chain:** The LLM Chain used by the agent. \ No newline at end of file diff --git a/docs/docs/components/chains.mdx b/docs/docs/components/chains.mdx index a79c4a97a..fd3b5bd5d 100644 --- a/docs/docs/components/chains.mdx +++ b/docs/docs/components/chains.mdx @@ -6,143 +6,65 @@ import Admonition from "@theme/Admonition"; # Chains- We appreciate your understanding as we polish our documentation – it may - contain some rough edges. Share your feedback or report issues to help us - improve! 🛠️📝 -
++ Thank you for your patience while we enhance our documentation. It may + have some imperfections. Share your feedback or report issues to help us + improve! 🛠️📝 +
- Use this component to make HTTP requests to external APIs or services and retrieve data. -
-- Ensure that you provide valid URLs and configure the method, headers, body, and timeout appropriately. -
-- Use this component to load files from a directory, such as text files, JSON files, etc. -
-- Ensure that you provide the correct path to the directory and configure other parameters as needed. -
-- Use this component to load a generic file, such as a text file, JSON file, etc. -
-- Ensure that you provide the correct path to the file and configure other parameters as needed. -
-- Ensure that you provide valid URLs and configure other parameters as needed. -
-- If _`As Record`_ is _`true`_ and the _`Message`_ is a _`Record`_, the data - of the _`Record`_ will be updated with the _`Sender`_, _`Sender Name`_, and - _`Session ID`_. + If `As Record` is `true` and the `Message` is a `Record`, the data + of the `Record` will be updated with the `Sender`, `Sender Name`, and + `Session ID`.
- Prompt variables can be created with any chosen name inside curly brackets, - e.g. `{variable_name}` -
- - -Here is how it looks when you get it from the sidebar. - -- The `TextInput` component serves as a straightforward means for setting Text - input values in the chat window. It ensures that textual data can be - seamlessly passed to subsequent components in the flow. -
- +The **Record Template** field is used to specify how a `Record` should be converted into `Text`. This is particularly useful when you want to extract specific information from a `Record` and pass it as text to the next component in the sequence. -It should look like this when dropped directly from the sidebar. - -- We appreciate your understanding as we polish our documentation – it may contain some rough edges. Share your feedback or report issues to help us improve! 🛠️📝 + Thanks for your patience as we improve our documentation—it might have some rough edges. Share your feedback or report issues to help us enhance it! 🛠️📝
- The component retrieves messages based on the provided criteria, including the specific file path for stored messages. If no specific criteria are provided, it will return the most recent messages up to the specified limit. This component can be used to review past interactions and analyze the flow of conversations. + The component retrieves messages based on the provided criteria, including the specific file path for stored messages. If no specific criteria are provided, it returns the most recent messages up to the specified limit. This component can be used to review past interactions and analyze conversation flows.
- We appreciate your understanding as we polish our documentation – it may contain some rough edges. Share your feedback or report issues to help us improve! 🛠️📝 + Thank you for your patience as we refine our documentation. You might encounter some inconsistencies. Please help us improve by sharing your feedback or reporting any issues! 🛠️📝
- If _`As Record`_ is _`true`_ and the _`Message`_ is a _`Record`_, the data of the _`Record`_ will be updated with the _`Sender`_, _`Sender Name`_, and _`Session ID`_. + If `As Record` is `true` and the `Message` is a `Record`, the data in the `Record` is updated with the `Sender`, `Sender Name`, and `Session ID`.
- The `TextOutput` component serves as a straightforward means for displaying text data. It ensures that textual data can be seamlessly observed in the chat window throughout your flow. -
-- We appreciate your understanding as we polish our documentation – it may - contain some rough edges. Share your feedback or report issues to help us - improve! 🛠️📝 + Thank you for your patience as we refine our documentation. It may + still have some areas under development. Please share your feedback or report any issues to help us improve!
- We appreciate your understanding as we polish our documentation – it may contain some rough edges. Share your feedback or report issues to help us improve! 🛠️📝 + We appreciate your patience as we enhance our documentation. It may have some imperfections. Please share your feedback or report issues to help us improve. 🛠️📝
- We appreciate your understanding as we polish our documentation – it may - contain some rough edges. Share your feedback or report issues to help us - improve! 🛠️📝 + Thank you for your patience as we enhance our documentation. It might + currently have some rough edges. Please share your feedback or report any + issues to assist us in improving! 🛠️📝
- We appreciate your understanding as we polish our documentation – it may contain some rough edges. Share your feedback or report issues to help us improve! 🛠️📝 + Thanks for your patience as we refine our documentation. It might have some rough edges currently. Please share your feedback or report issues to help us enhance it! 🛠️📝
- We appreciate your understanding as we polish our documentation – it may - contain some rough edges. Share your feedback or report issues to help us - improve! 🛠️📝 -
+- The Unique ID Generator is crucial for scenarios requiring distinct identifiers, such as session management, transaction tracking, or any context where different instances or entities must be uniquely identified. The generated UUID is provided as a hexadecimal string, offering a high level of uniqueness and security for identification purposes. -
+ The Unique ID Generator is crucial for scenarios requiring distinct identifiers, such as session management, transaction tracking, or any context where different instances or entities must be uniquely identified. The generated UUID is provided as a hexadecimal string, offering a high level of uniqueness and security for identification purposes.- Ensure that the required Astra DB token and API endpoint are properly configured. -
- + Ensure you configure the necessary Astra DB token and API endpoint before starting.Ensure that pymongo is installed to use MongoDB Atlas Vector Store.
+ Ensure pymongo is installed for using MongoDB Atlas Vector Store.- Ensure that the required PostgreSQL server is accessible and properly - configured. -
+ Ensure the PostgreSQL server is accessible and configured correctly.- Ensure that the required Pinecone API key and environment are properly - configured. -
+ Ensure the Pinecone API key and environment are correctly configured.- Ensure that the required Redis server connection URL and index name are - properly configured. If no documents are provided, a schema must be - provided. -
+ Ensure the Redis server URL and index name are configured correctly. Provide a schema if no documents are available.- Ensure that the required Supabase service key, Supabase URL, and table name - are properly configured. -
+ Ensure the Supabase service key, URL, and table name are properly configured.- If `inputs` are provided, they will be upserted to the corpus. If - `files_url` are provided, Vectara will process the files from the URLs. -
+ If inputs or files_url are provided, they will be processed accordingly.- Before using the Weaviate Vector Store component, ensure that you have a - Weaviate instance running and accessible at the specified URL. Additionally, - make sure to provide the correct API key for authentication if required. - Adjust the index name, text key, and attributes according to your dataset - and indexing requirements. Finally, ensure that the provided embeddings are - compatible with Weaviate's requirements. -
+ Ensure Weaviate instance is running and accessible. Verify API key, index name, text key, and attributes are set correctly.