Commit Graph

1453 Commits

Author SHA1 Message Date
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
Piotr Olaszewski
59a628cc02 Introduce .editorconfig 2024-06-15 18:14:09 +02:00
xsg22
369fbf8f8b Update documentation for OpenAiApi.ChatCompletionRequest's constructor 2024-06-15 18:09:19 +02:00
wubo
ccddc53f71 Upgrade Apache Tika to version 2.9.2 to address security vulnerabilities 2024-06-15 18:04:05 +02:00
Fu Cheng
52be1bcb4c Fix potential NPE using nullSafeList 2024-06-15 18:02:47 +02:00
Christian Tzolov
1d479e3aab Minor PgVector ITs improvements 2024-06-15 17:49:21 +02:00
Thomas Vitale
1eb61efc50 [Mistral] Update models
* Align model naming with Mistral AI documentation
* Add missing model for mixtral 22B
* Deprecate mistral-medium-latest because Mistral will remove it soon

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2024-06-15 17:48:14 +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
Eddú Meléndez
b8798dd73b Mark Testcontainers ContainerConnectionDetailsFactory as non-public 2024-06-15 17:01:58 +02:00
Thomas Vitale
7248075565 Fix Spring AOT for ConnectionDetails beans
Fixes gh-861

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2024-06-15 16:59:35 +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
Christian Tzolov
51b1d719d5 Add additional tests for PR #863 2024-06-15 14:25:09 +02:00
Mariusz Bernacki
a6bed95358 Add support for partially compliant OpenAI APIs
Some LLM providers, such as Groq and OpenRouter, are marketed as OpenAI API compatible.
 However, they often lack full support for the API specification.

 This PR allows to use the simpler message format if no media artifacts are assigned.
2024-06-15 14:08:01 +02:00
Christian Tzolov
053fcb0153 Patch the baadf4cb53 2024-06-15 12:57:26 +02:00
Christian Tzolov
baadf4cb53 Fix Oracle Vector Store dependencies
- force override the outdated SpringBoot Oracle version.
 - add auto-config tests.
2024-06-15 12:21:56 +02:00
Christian Tzolov
a5d92ec30f Adjust Oracle Vector store class names 2024-06-14 06:55:54 +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
Christian Tzolov
be9e4a828a Improve Hugging Face ITs 2024-06-13 22:13:40 +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
Amine Kadi
44154c5c93 Minor javadoc improvements 2024-06-13 16:15:18 +02:00
Nicholas Zhan
b3297fd2ab Upgrade djl to 0.28.0 2024-06-13 16:13:40 +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
85d2fa525e Fix the Gemini parallel function calling behaviour.
Enable handling multiple function calls at once.
  Change the Gemini model names from preview to gemini-1.5-pro-001 and gemini-1.5-flash-001.
  Simplify the Gemini function calling ITs. drop the multi-turn instructions.
2024-06-13 15:37:53 +02:00
Christian Tzolov
dbccfda7c5 Update Google VertexAI Gemini to 26.41.0
- update the Gemini function calling ITs to include a system message with dedicated calling instructions.
 - fix a type with few Gemini ChatModel enum names.
 - re-enable all Gemini ITs.
2024-06-13 12:43:23 +02:00
Christian Tzolov
2306db4a30 Improve the ai concepts documentation 2024-06-07 21:06:32 +02:00
Christian Tzolov
a4412b5d3a Various fixes and stability improvements
- Fix a bug in Azure streaming response. Ensure that the merge functionality resolves the right
   object constructors
 - drop the @ConditionalOnMissingBean for the ChatClientAutoConfiguration#chatClientBuilder .
   If multiple chat model starters are added to the POM this will fail as the ChatClient.Builder
    auto-config can handle only one chat model. Then the spring.ai.chat.client.enabled=false must be set.
 - Add missing AutoConfiguration imports for SpringAiRetryAutoConfiguration.class, RestClientAutoConfiguration.class,
   and WebClientAutoConfiguration.class to the AnthropicAutoConfiguration, MistralAiAutoConfiguration,
   OllamaAutoConfiguration,VertexAiPalm2AutoConfiguration.
 - change the OpenAi and Azure OpenAi default chat models to  gpt-4o
 - clean and improve the stability of various ITs
2024-06-07 14:26:17 +02:00
Christian Tzolov
64378dfcdd Fix the ChatClient call().content() output 2024-06-05 15:25:41 +02:00
Christian Tzolov
73b445b43b Minor doc improvements 2024-06-04 15:27:21 +02:00
Christian Tzolov
9bb2618436 Fix javadoc issues 2024-06-04 14:54:55 +02:00
Christian Tzolov
d6a0dffd3e Add ChatClient support for returning ResponseEntity<ChatResponse, T>
ChatClient already provides the .chatResponse() method to return the entire ChatResponse instance.
 It also provides a set of overloaded .entity(Type) methods to provide Type-converted responses.
 The new .responseEntity(Type) method returns a ResponseEntity<ChatResponse, T> instance, encapsulating
 both the ChatResponse and the requested Type-converted response entity.

 This change allows for more flexibility when handling different response types and facilitates
 easier integration with other components that expect ResponseEntity instances.
2024-06-04 14:36:21 +02:00
Christian Tzolov
6ad36b7653 ChatClient/DefaultChatClient refactoring
Now the ChatClient contains only the Spec interfaces while
   all implementations are moved to the DefaultChatClient
   and the DefaultChatModelBuilder classes.
2024-06-04 14:07:19 +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
yinpeng
20c6a1adcf fix: typo 2024-06-03 15:00:19 +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
f4c46770ee Widen the PromptSpec param value type from String to Object 2024-06-03 11:39:31 +02:00
Christian Tzolov
fa53e2afb3 Update Vertx AI PaLM2 deprecation information. 2024-05-31 16:45:10 +02:00