langchain-aws: 0.2.7#
agents#
Classes
AgentAction with session id information. |
|
AgentFinish with session id information. |
|
Invoke a Bedrock Agent |
|
Functions
|
Construct the boto3 session |
|
Parses the raw response from Bedrock Agent |
chat_models#
Classes
A chat model that uses the Bedrock API. |
|
Adapter class to prepare the inputs from Langchain to prompt format that Chat model expects. |
|
Bedrock chat model integration built on the Bedrock converse API. |
Functions
|
Format a list of messages into a full prompt for the Anthropic model |
Convert a list of messages to a prompt for llama. |
|
Convert a list of messages to a prompt for llama. |
|
Convert a list of messages to a prompt for mistral. |
embeddings#
Classes
Bedrock embedding models. |
function_calling#
Classes
Representation of a callable function to send to an LLM. |
|
Representation of a callable function to the OpenAI API. |
|
Functions
graphs#
Classes
Neptune Analytics wrapper for graph operations. |
|
|
Neptune wrapper for graph operations. |
Exception for the Neptune queries. |
|
Neptune wrapper for RDF graph operations. |
llms#
Classes
Base class for Bedrock models. |
|
Bedrock models. |
|
Adapter class to prepare the inputs from Langchain to a format that LLM model expects. |
|
A handler class to transform input from LLM to a format that SageMaker endpoint expects. |
|
Content handler for LLM class. |
|
A helper class for parsing the byte stream input. |
|
Sagemaker Inference Endpoint models. |
Functions
|
|
Cut off the text as soon as any stop words occur. |
retrievers#
Classes
Amazon Bedrock Knowledge Bases retrieval. |
|
Configuration for retrieval. |
|
Filter configuration for retrieval. |
|
Configuration for vector search. |
|
Additional result attribute. |
|
Value of an additional result attribute. |
|
Amazon Kendra Index retriever. |
|
Document attribute. |
|
Value of a document attribute. |
|
Information that highlights the keywords in the excerpt. |
|
Amazon Kendra Query API search result. |
|
Query API result item. |
|
Base class of a result item. |
|
Amazon Kendra Retrieve API search result. |
|
Retrieve API result item. |
|
Text with highlights. |
Functions
|
Clean an excerpt from Kendra. |
Combine a ResultItem title and excerpt into a single string. |
utilities#
Classes
|
Escape punctuation within an input string. |
|
Enumerator of the Distance strategies for calculating distances between vectors. |
Functions
Row-wise cosine similarity between two equal-width matrices. |
|
Row-wise cosine similarity with optional top-k and score threshold filtering. |
|
|
Get a redis client from the connection url given. |
Filter out metadata types that are not supported for a vector store. |
|
Calculate maximal marginal relevance. |
utils#
Functions
|
Cut off the text as soon as any stop words occur. |
Get the number of tokens in a string of text. |
|
Get the token ids for a string of text. |
vectorstores#
Classes
InMemoryVectorStore vector database. |
|
Retriever for InMemoryVectorStore. |
|
Cache that uses MemoryDB as a vector-store backend. |
|
Collection of InMemoryDBFilterFields. |
|
|
Logical expression of InMemoryDBFilterFields. |
|
Base class for InMemoryDBFilterFields. |
|
InMemoryDBFilterOperator enumerator is used to create InMemoryDBFilterExpressions |
InMemoryDBFilterField representing a numeric field in a InMemoryDB index. |
|
InMemoryDBFilterField representing a tag in a InMemoryDB index. |
|
InMemoryDBFilterField representing a text field in a InMemoryDB index. |
|
Schema for flat vector fields in Redis. |
|
Schema for HNSW vector fields in Redis. |
|
|
Distance metrics for Redis vector fields. |
Base class for Redis fields. |
|
Schema for MemoryDB index. |
|
Base class for Redis vector fields. |
|
Schema for numeric fields in Redis. |
|
Schema for tag fields in Redis. |
|
Schema for text fields in Redis. |
Functions
Check if MemoryDB index exists. |
|
Decorator to check for misuse of equality operators. |
|
Read in the index schema from a dict or yaml file. |