spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
related issue: https://github.com/spring-projects/spring-ai/issues/1854, https://github.com/spring-projects/spring-ai/issues/2725 Currently, only `TEXT` and `JSON_OBJECT` options were available, so I have improved it to allow selecting the `JSON_SCHEMA` option as well. The implementation was based on...
Most AI models now support an option to provide structured output. 1. Verify that the chat client options for all models that support structured output have a corresponding option. 2....
Hi there, Microsoft has added support for structured output in Azure AI OpenAI SDK beta 1.0.0-beta12. It's pretty similar to the feature in the original OpenAI endpoint. Please see https://github.com/Azure/azure-sdk-for-java/blob/azure-ai-openai_1.0.0-beta.12/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StructuredOutputsResponseFormat.java...
I want to add a re-ranking feature in RAG but have encountered some issues that need improvement. Initially, I planned to add an Advisor for handling re-ranking after QuestionAnswerAdvisor, but...
when i use open-ai with doubao bot model, *references* is missing when convert to *ChatCompletionChunk*
specificaiton -> specification
Solve #2770
**Bug description** PromptTemplate has a validate method that compares input variables used in the template (pulled straight from the underlying Antlr TokenStream) to the parameters provided in an attempt to...
As mentioned in https://github.com/spring-projects/spring-ai/issues/2456, when using `PromptTemplate`, if the template contains certain built-in functions, it fails validation during `render()`. I made the following two fixes and optimizations: 1. By comparing...
I am trying to use Spring AI in a multi-tenant application. The openAI api key needs to be set on a per request basis according to our user context. I...