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
Craig Walls
76e7e0bd93
Overload QuestionAnswerAdvisor to use SearchRequest.defaults()
2024-05-30 13:12:42 +02:00
Philipp Gerhard
9286dfb4bd
Extend format to improve generate JSON
...
- Add an additional instruction to the format for the model not to include markdown syntax for JSON quotes.
- Extend the conversion to strip markdown quotes in case the model included them in the response
2024-05-29 15:10:36 +02:00
Mark Pollack
ac91302eed
Next development version
2024-05-28 13:53:04 -04:00
Mark Pollack
0670575f3e
Release version 1.0.0-M1
2024-05-28 13:49:11 -04: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
Mark Pollack
574138a26a
Remove chat.service package and related classes
...
* This functionality is now provided using the advisors feature in ChatClient
2024-05-27 15:36:30 -04:00
Christian Tzolov
a64dd06c48
Add payment transaction status Function Calling ITs - OpenAI and Vertex AI Gemeini
2024-05-27 18:11:44 +02:00
Christian Tzolov
5226d0b9b3
Enable ZhiPu AI ITs only on ZHIPU_AI_API_KEY env present
2024-05-27 08:40:45 +02:00
Christian Tzolov
22a511a6d7
Fix the ChatClient.Builder.defaultAdvisors() to take var args
2024-05-27 07:59:17 +02:00
Christian Tzolov
42095f011a
Remove dots from the prompt template placeholder names
...
The ST library doesn't permit dots in the placeholder names.
2024-05-27 07:44:56 +02: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
GR
23e448cf2a
fix: ZhiPu embedding client individual calls to embed document collection
...
fixes #771
2024-05-26 23:24:36 -04:00
Christian Tzolov
c4784a070f
Add ChatClient plugable advisors support
...
- Add RequestResponseAdvisor interface with adviseReqeust and adviseResponse methods.
The adviseRequest method takes and returns AdvisedRequest.
The adviseResponse method takes and returns ChatRequest.
- Add ChatClient#ChatClientRequets advisor(...) methods to register advisros.
ChatClient call the registered advisors in order before sealing the ChatClientRequest into a Prompt and call the model
and after the model response.
- Implement PromptChatMemoryAdvisor that uses the ChatMemory and the systemem prompt.
- Implement MessageChatMemoryAdvisor that usees the ChatMemory and the prompt messages.
- Implement VectorStoreChatMemoryAdvisor that uses VecrStore for long term message history.
- Add tests.
- Add shared context to the RequestResponseAdvisor's flow, Context is shared between the request and the response
- Add advisor parameters that are passed through the context
2024-05-26 23:23:52 -04:00
Christian Tzolov
178a607cf6
Fix an issue related to the Azure OpenAI streamig response
...
This issue in the Flux streaming logic was causing chunks
to be aggreagated in a single response.
Re-enable the AzureOpenAiAutoConfigurationIT
2024-05-27 01:02:35 +02: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
Mark Pollack
a60035eeb6
Update to Spring Boot 3.3
...
* Tests have been updated to use the "gpt-4-turbo" model instead of the "gpt-4-turbo-preview".
* String comparisons of temperature have been adjusted to match the format changes from model reponses
2024-05-26 16:24:57 -04:00
Mark Pollack
c22b2f05dd
Add support for use of AZURE_OPENAI_DEPLOYMENT_NAME in IT tests
...
* remove from README.md info of changed default for initialize-schema
2024-05-26 14:28:51 -04:00
Christian Tzolov
7c2c0cfc18
Improve the MockWeatherService to reduce erratic IT behaviour
2024-05-26 20:25:26 +02:00
Christian Tzolov
a49974d90f
Various, minor Amazon Bedrock ITs improvements
2024-05-26 19:40:00 +02:00
Christian Tzolov
a4e3a7b8de
Streamline the OllamaEmbeddingModelIT
2024-05-26 18:32:25 +02:00
Christian Tzolov
79e2dab29a
Disable ITs related to the ChatService's ChatMemory implementations
...
Disable ITs due to deprecation of all ChatService PromptTransformer ChatMemory implementations.
2024-05-26 17:27:59 +02:00
Christian Tzolov
99fbf013d3
Temp revert CommonVectorStoreProperties.initializeSchema to true by default
2024-05-26 17:17:55 +02: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
Mark Pollack
b872c894c3
Update OpenAIAutoConfiguration to import dependent auto configurations
...
* Fixes breaking change introduced in commit 377b5ff
2024-05-24 13:17:04 -04:00
JoeHitHard
dea7ab67c3
#690 choices can be null look at OpenAiApi.java:606
...
Signed-off-by: JoeHitHard <josephmeghanath@gmail.com >
2024-05-24 11:51:18 -04:00
skewgod
593e5fd747
docs(qdrant): added additional info to setup api key for qdrant ( #736 )
2024-05-24 11:36:26 -04:00
devholic22
0e0d453e2b
Add javadoc and clean up method names in OpenAiImageModel
...
* remove getDefaultOptions method as it is not used.
2024-05-24 11:27:46 -04:00
devholic22
df12e17385
Modify RetryTemplate access level in OpenAiChatModel
...
* Modify RetryTemplate access level (public - private) in OpenAiChatModel
2024-05-24 11:27:09 -04:00
devholic22
d6c1b033ad
Add comments in OpenAiImageModel
...
* Add comments in OpenAiImageModel like OpenAiChatModel
2024-05-24 11:27:09 -04:00
Alexander Hewer
c26d5f624c
Added support for response format in chat options for Azure OpenAI
...
- Added new enum class AzureOpenAiResponseFormat
- Modified merge methods in AzureOpenAiChatModel to use new parameter
- Modfied AzureOpenAiChatOptions to include the responseFormat parameter
- Modified Azure ChatCompletionsOptionsTests to verify that new parameter is working as expected
- Added docs
2024-05-24 11:20:40 -04:00
Swapnil Jain
14a4fbefaf
Update concepts.adoc documentation for clarity and accuracy ( #762 )
2024-05-24 11:06:46 -04:00
Thomas Vitale
312156e2cb
Introduce autoconfiguration for Cloud Bindings
...
Fixes gh-499
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com >
2024-05-24 10:59:52 -04:00
Mark Pollack
ac518df4db
Rename method 'created' to 'getCreated' in OpenAiImageResponseMetadata
...
In the ImageResponseMetadata interfaces and its implementations, the method 'created' has been renamed to 'getCreated' to support JSON ser/deser
Fixes #625
2024-05-24 10:50:14 -04:00
deepak
377b5ffa61
Use WebClient.Builder and RestClient.Builder as ctor args in OpenAiAutoConfiguration
...
Fixes #609
2024-05-24 10:23:55 -04:00
Christian Tzolov
8257c0dc43
Improve ChatClient impl. parameter cohesion
2024-05-24 15:00:03 +02:00