You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-4Lines changed: 48 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,16 +13,57 @@ Copyright 2025, Teradata. All Rights Reserved.
13
13
*[Documentation](#documentation)
14
14
*[Release Notes](#release-notes)
15
15
*[Installation and Requirements](#installation-and-requirements)
16
-
*[Usage Examples](#usage-examples)
17
16
*[License](#license)
18
17
19
18
## Documentation
20
19
General product information, including installation instructions, is available in the [Teradata Documentation website](https://docs.teradata.com/search/documents?query=Python+package+for+Generative-AI&sort=last_update&virtual-field=title_only&content-lang=en-US).
21
20
22
21
## Release Notes
22
+
### Version 20.00.00.01
23
+
* New features introduced in this release require Database version 20.00.28.XX
24
+
* Added a method `rename_metadata_keys` to rename restricted metadata keys in Langchain Document objects.
25
+
* Added support for `search_type` "mmr" and filters to TeradataVectorStoreRetriever.
26
+
* Added support for metadata for input Langchain Document objects.
27
+
* Added support for embedding-based Vector Store to TeradataVectorStoreRetriever.
28
+
* Added support to delete specific chunks from a file in the vector store using `delete_by_ids`.
29
+
* Added new parameters to pass model url parameters and ingest parameters to from_* and add_* methods during vector store creation:
30
+
*`model_urls` - Specifies the urls and model information to be used during Vector Store creation.
31
+
*`ingest_params` - Specifies the parameters to be used for document ingestion for NIM. Applicable only for file-based vector stores.
32
+
33
+
* Added new parameters for similarity_search:
34
+
*`column`: Specifies the column name which contains the question in text format.
35
+
*`data`: Specifies the table name/DataFrame which contains the question in text format.
36
+
37
+
* Added new parameters for ask:
38
+
*`batch_vector_column`: Specifies the column that contains the questions in embedded form.
39
+
*`question_vector`: Specifies the question in vector/embedded form.
40
+
*`data`: Specifies table name or corresponding teradataml DataFrame where the question is stored (only one question/row should be present).
41
+
*`column`: Specifies the column name which contains the question in text format.
42
+
*`vector_column`: Specifies the column name which contains the question in embedded format.
43
+
44
+
* Added new common parameters for similarity_search, similarity_search_by_vector and ask:
45
+
*`top_k`: Specifies the number of top similarity matches to be generated.
46
+
*`search_threshold`: Specifies the threshold value to consider matching tables/views while searching.
47
+
*`search_numcluster`: Specifies the number of clusters or fraction of train_numcluster to be considered while searching.
48
+
*`ef_search`: Specifies the number of neighbors to consider during search in HNSW graph.
49
+
*`filter`: Specifies the filter to be used for filtering the results.
50
+
*`filter_style`: Specifies whether to apply filtering before or after the similarity_search.
51
+
*`maximal_marginal_relevance`: Specifies whether to use Maximal Marginal Relevance (MMR) for retrieving documents.
52
+
*`lambda_multiplier`: Specifies Lambda multiplier to control the trade-off between relevance and diversity when selecting documents.
53
+
54
+
* Exposed the following classes:
55
+
*`ModelUrlParams` class to configure model and URL-related parameters for vector store creation using from_* and add_* methods on AI-Factory.
56
+
*`IngestParams` class to configure ingestor-related parameters for file-based vector store creation using from_* and add_* methods on AI-Factory.
57
+
* Note: Users can still pass these parameters directly while creating the vector store.
58
+
59
+
* Added the following methods to set the search parameters based on the "search_algorithm":
60
+
*`set_kmeans_search_params()` method to configure KMEANS search parameters for the vector store.
61
+
*`set_hnsw_search_params()` method to configure HNSW search parameters for the vector store.
62
+
*`set_vectordistance_search_params()` method to configure VECTORDISTANCE search algorithm parameters for the vector store.
63
+
23
64
### Version 20.00.00.00
24
65
*`langchain-teradata 20.00.00.00` marks the first release of the package.
25
-
*Compatible with August Lake drop (Tahoe-1.2.1) .
66
+
*Features introduced in this release require Database version 20.00.27.XX
26
67
* Added methods for managing and creating vector stores:
27
68
28
69
*`from_documents(name, documents, embedding=None, **kwargs)`: Creates a new vector store, either 'file-based' or 'content-based', depending on the type of input documents. If the input is PDF file(s) or file path(s), a file-based vector store is created. If the input is LangChain Document object(s), a content-based vector store is created. If the store already exists, raises an error.
@@ -36,10 +77,13 @@ General product information, including installation instructions, is available i
36
77
*`delete_documents(documents, **kwargs)`: Removes specified documents from a file-based vector store.
37
78
*`delete_datasets(data, **kwargs)`: Removes specified datasets from a content-based vector store.
38
79
*`delete_embeddings(data, **kwargs)`: Removes embedding data from an embedding-based vector store.
80
+
*`similarity_search(question, **kwargs)`: Performs similarity search in the Vector Store for the input question.
81
+
*`similarity_search_by_vector(**kwargs)`: Performs similarity search in the Vector Store for the input question vector or embedded question stored in the input table.
82
+
*`prepare_response(similarity_results, question, prompt, **kwargs)`: Prepare a natural language response to the user using the input question and similarity_results provided by similarity_search() method using interactive/batch mode.
83
+
*`ask(question, prompt, **kwargs)`: Performs similarity search in the vector store for the input question followed by preparing a natural language response to the user using interactive/batch mode.
39
84
*`update()` : Updates the search parameters of an existing vector store.
40
85
*`as_retriever()`: Creates a TeradataVectorStoreRetriever instance that can be used to retrieve relevant documents.
41
86
42
-
43
87
## Installation and Requirements
44
88
### Package Requirements:
45
89
* Python 3.9 or later
@@ -55,7 +99,7 @@ Note: 32-bit Python is not supported.
55
99
* SLES 12 or later versions
56
100
57
101
### Minimum Database Requirements
58
-
* Teradata Vantage with database release 20.00.25.XX or later
102
+
* Teradata Vantage with database release 20.00.27.XX or later
59
103
* Vector Store (Data insights) service is enabled.
0 commit comments