Skip to content

Commit 840a372

Browse files
authored
Merge pull request #1 from Teradata/20.00.00.01
notebooks readme for 20.00.00.01
2 parents fa75cd9 + 0338eda commit 840a372

5 files changed

+1741
-592
lines changed

README.md

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,57 @@ Copyright 2025, Teradata. All Rights Reserved.
1313
* [Documentation](#documentation)
1414
* [Release Notes](#release-notes)
1515
* [Installation and Requirements](#installation-and-requirements)
16-
* [Usage Examples](#usage-examples)
1716
* [License](#license)
1817

1918
## Documentation
2019
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).
2120

2221
## 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+
2364
### Version 20.00.00.00
2465
* `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
2667
* Added methods for managing and creating vector stores:
2768

2869
* `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
3677
* `delete_documents(documents, **kwargs)`: Removes specified documents from a file-based vector store.
3778
* `delete_datasets(data, **kwargs)`: Removes specified datasets from a content-based vector store.
3879
* `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.
3984
* `update()` : Updates the search parameters of an existing vector store.
4085
* `as_retriever()`: Creates a TeradataVectorStoreRetriever instance that can be used to retrieve relevant documents.
4186

42-
4387
## Installation and Requirements
4488
### Package Requirements:
4589
* Python 3.9 or later
@@ -55,7 +99,7 @@ Note: 32-bit Python is not supported.
5599
* SLES 12 or later versions
56100

57101
### 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
59103
* Vector Store (Data insights) service is enabled.
60104

61105

0 commit comments

Comments
 (0)