Commit Graph

380 Commits

Author SHA1 Message Date
Mark Pollack
596f2b06c0 Move native hints into individual modules
* Use aot.factories approach for registration
* Add tests
* final tweaks- Thanks Josh!
2024-02-20 14:23:40 -05:00
Mark Pollack
ea7dce3833 Refine Bedrock README. Fixes #180 2024-02-19 12:36:03 -05:00
Mark Pollack
a107e313fc Fixes #219 - Remove dependency cycles 2024-02-19 12:24:16 -05:00
Mark Pollack
60f9446562 Add additional pointers to help setup dependencies in each ChatClient and EmbeddingClient docs 2024-02-19 11:12:04 -05:00
Mark Pollack
d28450a3a3 clean up README.md and improve getting-started.adoc 2024-02-16 16:53:17 -05:00
Christian Tzolov
0f0898ddef Update srping-ai funciton call diagram 2024-02-16 12:06:02 +01:00
Christian Tzolov
25e6569bb7 another minor doc code snippet fix 2024-02-16 11:46:00 +01:00
Christian Tzolov
8a16fce26e minor doc improvements 2024-02-16 11:39:15 +01:00
Mark Heckler
d9d6011eaf Added client-level appId 2024-02-16 11:24:39 +01:00
Abdoulaye Ndiaye
4e0434b337 Update openai-embeddings.adoc
Fixed small error in OpenAiChatOptions implementation documentation
2024-02-16 11:22:29 +01:00
Christian Tzolov
fdd3fbb2f9 Revert default OpenAI embedding to text-embedding-ada-002 as some vector stores have problems with 3-small 2024-02-16 11:19:34 +01:00
Christian Tzolov
5391505098 Update openai docs, function call diagrams 2024-02-16 10:48:48 +01:00
Christian Tzolov
697e945950 Fix EmbeddingIT after default openai embedding model switch 2024-02-16 10:40:13 +01:00
Christian Tzolov
0458f7c525 Minor Doc improvments 2024-02-16 10:36:46 +01:00
Christian Tzolov
7ef49b8cef Set the default OpenAI Embedding model to text-embedding-3-small
The text-embedding-3-small has the same dimensions as previous text-embedding-ada-002.
  The text-embedding-3-large has higher dimensionality not supported by some Vector Stores.
2024-02-16 10:27:13 +01:00
Gerrit Meier
e62543c761 Use the new vector index creation syntax for Neo4j.
To make the Neo4j module more future-proof, this commit
replaces the old vector index creation syntax with the new style.
Also, the new pattern is in line with the standard Neo4j index creation
and supports the _IF NOT EXISTS_ clause to run idempotent.
This allows us to remove the preceding call to check if the index exists.

As a consequent, the module will require Neo4j to be at least on version 5.15.
2024-02-16 09:40:36 +01:00
Christian Tzolov
05ce9ff398 Simplify Function Calling API
POJOs FTW!
2024-02-15 23:42:58 -05:00
Christian Tzolov
bd479e1388 Address review comments 2024-02-15 22:38:50 +01:00
Christian Tzolov
d580fe2757 Simplify Function Calling API 2024-02-15 20:26:31 +01:00
Gerrit Meier
10438c55a3 Remove Neo4j driver auto-config from the module.
- Neo4j vector store documentation update.
2024-02-15 13:02:51 +01:00
Christian Tzolov
1fa2036120 Refactor the Function Calling Support
- Remove the SpringAiFunction annotation in favour of palin Functino Beans, @Description annotation and JacksonClassAnnotation.
 - Update the function calling documentation to reflect latest changes.
 - Add a new openai option (and related property): spring.ai.openai.chat.options.beanFunctions.<function-name>.<description>
   Map of bean names and their descriptions to register as function callbacks.
 - Refactor the OpenAiAutoConfiguration to resolve and register the beans in beanFunctions.
 - Add dependency on Spring Cloud Function to use the FunctionContextUtils and FunctionTypeUtils
   Those utilites help to resolve the function input type signature.
 - Add DefaultToolFunctionCallback class for manually wrapping Functions.
 - Update the ITs.
2024-02-15 12:39:35 +01:00
Mark Pollack
43dbaf4edd Add documentation for Image Generation
- Refine StabilityAI classes
- Add documentation
2024-02-14 17:18:04 -05:00
Adam Bchouti
36278afdb3 Add Pinecone namespace support for add, search and delete operations 2024-02-14 14:55:21 +01:00
Adam Bchouti
41885a8e62 Enable updating the pinecone vector store namespace 2024-02-14 14:41:09 +01:00
Christian Tzolov
806f5c4b20 Resolve javadoc issues 2024-02-14 13:24:53 +01:00
Christian Tzolov
6a72956c52 fix javadoc formatting 2024-02-14 13:20:26 +01:00
Chris Smith
b2a4f01761 Add Spring Annotation for registerding Function Calling tools.
- Built on top of the existing ToolFunctionCallback utilites.
 - Organized as part of auto-configuration project under the /common/function
   package to be reusable for different model implementations.
 - Add OpenAI support for the SpringAiFunction annotation.
 - Update the OpenAI function calling documentation.
 - Add ITs

Co-Authored-By: Christian Tzolov <ctzolov@vmware.com>
2024-02-14 13:15:04 +01:00
Christian Tzolov
57c66b91d7 Fix a broken test 2024-02-14 09:54:20 +01:00
Gerrit Meier
408337e327 Support filter expressions in Neo4j vector store.
- Move Neo4j filter converters from core to neoj4 vector store project.
 - Update neo4j adoc.

 Resolves #318
2024-02-14 09:23:44 +01:00
Christian Tzolov
ca0d10d678 Resolve #324 2024-02-14 07:18:45 +01:00
Christian Tzolov
22bd645d1e fix azure model README broken link 2024-02-14 06:55:42 +01:00
Christian Tzolov
9d41e4380a Make model READMEs ponint to their corresponding Antora documentations 2024-02-14 06:50:23 +01:00
Christian Tzolov
f6447f420e Clean obsolate README files 2024-02-14 06:40:35 +01:00
Christian Tzolov
12d3ae40c4 Fix adcocs navigation 2024-02-14 06:25:35 +01:00
Christian Tzolov
cb12512775 Add spring AI Bom and related docs 2024-02-13 13:38:24 +01:00
Christian Tzolov
0334e6d428 Improve vectordbs documentation 2024-02-13 11:13:40 +01:00
Christian Tzolov
8f4d840761 minor docs improvments 2024-02-13 09:51:01 +01:00
Christian Tzolov
bff3e589d0 Fix documentation navigation issue with Bedrock submenu 2024-02-12 18:24:56 +01:00
sunshiningsoo
c0a341c300 Remove slash according to api 2024-02-12 16:32:09 +01:00
Christian Tzolov
8210fb165b fix broken antora docs 2024-02-12 16:28:47 +01:00
Mark Heckler
f56626456e Fixes implemented per request by @tzolov 2024-02-12 15:57:51 +01:00
Mark Heckler
d8b6a276ff Additional link/content cleanup 2024-02-12 15:57:51 +01:00
Mark Heckler
214858bec5 Updated several vector db docs to fix errors and to expand on instructions, making it easier to follow and complete successfully: Azure AI Search, Neo4j, and Postgres/PGvector 2024-02-12 15:57:51 +01:00
Mark Heckler
dc86957a07 Documentation fixes, clean and polish 2024-02-12 15:57:51 +01:00
Christian Tzolov
330f8b37df Minor docs links fix 2024-02-12 10:16:00 +01:00
Christian Tzolov
ecc81b5e49 Fix docs broken links 2024-02-12 08:04:17 +01:00
Christian Tzolov
ffd8222c20 OpenAI ChatClient tools support
* Add function call OpenAiApi IT tests
* Add function call docs. Unit and IT func tests
* Add function call diagram
* Allow to opt-in/enable the fuctions to be used in request.
2024-02-11 23:34:04 -05:00
Gerrit Meier
254b8632cd Allow configuration of vector index name.
At the moment, it is not possible to configure SpringAI
to use an existing index in the database.
This commit enables the user to provide the index name
for auto configuration or builder usage.
2024-02-11 20:35:46 +01:00
Christian Tzolov
dc04327dcf Add Geneic Model API diagram to the docs 2024-02-11 19:04:33 +01:00
Christian Tzolov
21d7cdd5c0 Add VertexAi Embeddings Docs + clear READMEs 2024-02-11 18:32:55 +01:00