Commit Graph

423 Commits

Author SHA1 Message Date
Christian Tzolov
dfa3ceb1ab GH-912: Add customizable logger advisor (#913)
* Add customizable logger advisor
* Address review comments
* Use the OutputCaptureExtension to verify the output text

 Resolves #912
2024-06-21 10:26:18 -04:00
Muthukumaran Navaneethakrishnan
f0ca61252b Add support for customizable PgVectorStore schema, table, and index names (#747)
This change allows users to specify custom names, facilitating management of multiple vector databases within a single database instance.

 Key changes:
 - Implement configurable schema, table, and index names for PgVectorStore
 - Add properties to set custom schema and table names
 - Introduce optional schema/table & field validation for custom configurations
 - Include additional tests for new configurations and existing deployments

 Additional improvements:
 - Rename properties to schemaName, tableName, and schemaValidation
 - Update pgvector documentation with new properties
 - Add schema/table name tests to PgVectorStoreAutoConfigurationIT and PgVectorStorePropertiesTests
 - Create standalone PgVectorSchemaValidator class for schema/table validation
 - Add missing 'CREATE SCHEMA IF NOT EXISTS' when initializeSchema=true
 - Remove redundant code and classes

 Resolves #747

Co-authored-by: Christian Tzolov <ctzolov@vmware.com>
2024-06-21 11:02:22 +02:00
geetrawat
067a33dbe2 Improved GemFire support
- Adds spring boot auto-configuration support for GemFireVectorStore
- Adds integration test GemFireVectorStoreAutoConfigurationIT
- Includes gemfire-testcontainers in integration tests
- Adds unit test GemFireVectorStorePropertiesTests
- Refactors GemFireVectorStore.java extracting GemFireVectorStoreConfig.java
- Renames spring-ai-gemfire to spring-ai-gemfire-store
- Adds GemFireConnectionDetails
- Adds GemFireVectorStoreProperties with default values
- Remove gemfire-release-repo maven repository

Co-authored-by: Louis Jacome <louis.jacome@broadcom.com>
Co-authored-by: Jason Huyn <jason.huynh@broadcom.com>
2024-06-20 17:17:13 -04:00
Mark Pollack
6bd3bca1d7 update contribution docs 2024-06-20 10:38:30 -04:00
Bill Lau
7d83ed63d1 Update openai-embeddings.adoc
fix base-url error in openai-embeddings.adoc
2024-06-20 09:20:59 +02:00
Eddú Meléndez
37c222a5f3 Add OpenSearch Service Connection support
Service Connection support for Docker Compose and Testcontainers.
2024-06-20 07:20:30 +02:00
Eddú Meléndez
b134a8d7ea Add support for redis/redis-stack image in Docker Compose
Currently, `redis/redis-stack-server` image is supported. This commit
introduces support for `redis/redis-stack`, which also contains Redis
Insight.
2024-06-19 16:06:01 +02:00
Eddú Meléndez
6ce998f9d3 Add support for Typesense Service Connection
Docker Compose and Testcontainers Service Connection support for
Typesense.
2024-06-19 15:59:49 +02:00
Christian Tzolov
c81262d903 doc typos fix 2024-06-18 16:14:27 +02:00
Christian Tzolov
3cbda5acd8 Enable dynamic filter expressions for QuestionAnswerAdvisor
- Add FILTER_EXPRESSION advisor context parameter to update filter expressions per call/stream
 - Implement dynamic filter expression handling in QuestionAnswerAdvisor
 - Add unit tests for dynamic filter expression functionality
 - Update documentation with usage examples

 Resolves #887
2024-06-18 14:32:38 +02:00
Christian Tzolov
704a5319b1 Minor adoc fix 2024-06-18 09:58:21 +02:00
Christian Tzolov
2c7dc3d6f1 Pinecone: Add configurable content and distance metadata fields (#882)
- Add `withContentFieldName` and `withDistanceMetadataFieldName` to Pinecone Config Builder
 - Add `spring.ai.vectorstore.pinecone.contentFieldName` and `spring.ai.vectorstore.pinecone.distanceMetadataFieldName`
   properties to the auto-config
 - Default content field name: "document_content", distance field: "distance"
 - Update tests and docs

 Resolves #882
2024-06-18 07:57:15 +02:00
Laura Trotta
aca3720f5b ElasticSearch: remove redundant dependency and add note to docs. 2024-06-17 20:56:57 +02:00
Laura Trotta
78f3797f8d Update Elasticsearch Store: Use KNN insettad of script_score
- knn instead of script_score, removed initialization
 - only using normalized similarities, adjusted unit test
 - making l2norm's distances consistent with others
 - update dependency version and docs
 - upate autoconfigure ITs
2024-06-17 15:17:48 +02:00
Benoit Moussaud
c9dd336ea3 Add multimodality support for Azure OpenAI API
- update Azure OpenAI documentation.
 - add ITs
2024-06-17 14:06:27 +02:00
Christian Tzolov
958549ecce Rename all Embedding Client doc and variables occurrences into Embedding Model 2024-06-16 21:24:03 +02:00
Eddú Meléndez
704dec20d9 Chroma Vector Store: replace RestTemplate by RestClient
- replace RestTemplate by  RestClient but default to SimpleClientHttpRequestFactory as Chroma seems to have issues with HTTP2.
 - update the documentation.
 - update the ghcr.io/chroma-core/chroma version to 0.5.0. Fix the withBasicAuthCredentials.

Co-authored-by: Christian Tzolov <ctzolov@vmware.com>
2024-06-16 21:07:03 +02:00
Jemin Huh
46e47849ce Add OpenSearch vector store integration
- implement OpensSearchVectorStore
 - add opensearch auto-configuration and boot starter
 - add documentation for OpenSearch VectorStore
 - add bom dependecies
 - align with to new Spirng AI API
2024-06-16 12:43:09 +02:00
Christian Tzolov
476164b6e3 Move the vector expression converters from core to their projects 2024-06-15 20:24:29 +02:00
PabloSanchi
3e2ed8b9bf Add Typesense vector store integration
- autoconfigure setup
 - add post bean initialization and create method
 - add embedding field
 - create collection add nested field options
 - add typesense tests
 - use embedding variable instead of word vec
 - check in runtime the number of documents in the collection
 - add typesense expression converter
 - add filter tests. add update document test and search with threshold test
 - distance threshold and add distance key into metadata
 - add typesesne boot starter
 - add typesense docs
 - add client properties in autoconfigure
 - add embedding dimension method
 - add typesense vector store autoconfiguration tests
 - add docs to nav.adoc and vectorsdb.adoc.
 - fix module name.
 - move the expression converter to the typesense project.
2024-06-15 19:55:05 +02:00
Thomas Vitale
3cac679223 [PGvector] Improve documentation
* Added tips for running PGvector as a Spring Boot dev service
* Fixed typos in code snippets
* Updated the PGvector image name
* Improved syntax

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2024-06-15 17:47:32 +02:00
Cameron Kirk
ba4b57cc46 Update ollama-embeddings.adoc 2024-06-15 16:42:03 +02:00
Andrea Rubino
8c33fff161 Update mistralai-chat.adoc
withMaxToken method wrong name
2024-06-15 14:32:42 +02:00
David Caudill
1b0903e29f Fixed ParagraphPdfDocumentReader example 2024-06-15 14:30:41 +02:00
Craig Walls
462025de75 Use FunctionCallbackWrapper builder in Minimax and ZhipuAI docs 2024-06-15 14:29:41 +02:00
Craig Walls
217f944b08 Fix mistral_small_latest to mistral-small-latest in functions docs 2024-06-15 14:29:41 +02:00
Craig Walls
470d4f6af4 Fix mistral_large_latest to mistral-large-latest 2024-06-15 14:29:41 +02:00
Craig Walls
52899cc099 Update FunctionCallbackWrapper docs for Anthropic, Mistral, and OpenAI 2024-06-15 14:29:41 +02:00
LLEFEVRE
41cf693bc0 Add Support for Oracle 23ai as vector database
- add OracleVectorStore with metadata filter expression support.
 - add ITs using oracle-free-slim testcontainers.
 - add auto-configuration and boot starter.
 - add adoc documentation.
 - Adjust javadoc references.

 Resolves #703

 Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
2024-06-14 06:46:01 +02:00
Thomas Vitale
2a592d4e84 Introduce Hugging Face Starter
* Added Spring Boot Starter for Spring AI Hugging Face
* Updated documentation with instructions using the starter dependency
* Fixed naming inconsistencies in the docs for Hugging Face

Fixes gh-838

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2024-06-13 22:07:58 +02:00
cocomongg
f89aa3bcdb Fix typo: Change 'context' to 'content 2024-06-13 16:12:56 +02:00
Nicholas Zhan
02f4413273 docs(onnx): add additional info for configuration properties and note for ONNX transformer. 2024-06-13 16:12:40 +02:00
Christian Tzolov
2306db4a30 Improve the ai concepts documentation 2024-06-07 21:06:32 +02:00
Christian Tzolov
73b445b43b Minor doc improvements 2024-06-04 15:27:21 +02:00
Christian Tzolov
b9844f9bf8 Improve AI concepts doc 2024-06-04 07:09:29 +02:00
Christian Tzolov
7cf3525f1a Few doc aligments with the new ChatClient API 2024-06-04 06:28:56 +02:00
Christian Tzolov
1758d561f6 docs improvments 2024-06-03 22:18:24 +02:00
Christian Tzolov
7c86fc7c89 Minor doc improvements 2024-06-03 22:10:34 +02:00
Christian Tzolov
19f3930737 Add doc concepts diagrams 2024-06-03 21:53:13 +02:00
blackbean99
77afc6028f update embeddings-api.jpg 2024-06-03 14:59:38 +02:00
Cameron Kirk
d44a9ad17b Update chatclient.adoc 2024-06-03 14:49:41 +02:00
Cameron Kirk
b0a02778b9 Update chatclient.adoc 2024-06-03 14:49:41 +02:00
Cameron Kirk
7f8822fdea Fix typo chatclient.adoc 2024-06-03 14:49:41 +02:00
Christian Tzolov
fa53e2afb3 Update Vertx AI PaLM2 deprecation information. 2024-05-31 16:45:10 +02:00
Mark Pollack
db1f3ea5d2 doc fixes 2024-05-27 23:35:44 -04:00
Mark Pollack
2b2cacce8c Add documentation for ChatClient and Evaluation 2024-05-27 23:04:12 -04:00
Benoit Moussaud
a30cc9d84d Add the support of Azure OpenAI image generation
* Add docs
2024-05-27 16:26:24 -04:00
Eddú Meléndez
9c1b1b84ee Add Docker Compose Service Connection
* For ChromaDB, Ollama, Qdrant, Redis, Weaviate
* Add docs
2024-05-26 23:28:44 -04:00
Mark Pollack
dc656ce3bc Update available OpenAI GPT 4 family of models in enum
* Use GPT 4 Turbo in OpenAiPromptTransformingChatServiceIT
* Accept multiple bike names as acceptable answers in assertion
* Update docs
2024-05-26 18:31:39 -04:00
Josh Long
2d43e40024 Add property to initialize schema for vector stores
* Default is fale
* Update docs
2024-05-26 00:31:19 -04:00