spring-ai
spring-ai copied to clipboard
An Application Framework for AI Engineering
* Add a `SelfQueryAdvisor` that follows LangChain's [SelfQueryRetriever](https://python.langchain.com/v0.1/docs/modules/data_connection/retrievers/self_query/): `Specifically, given any natural language query, the retriever uses a query-constructing LLM chain to write a structured query and then applies that...
* Remove code duplications between `DefaultCallResponseSpec` and `DefaultStreamResponseSpec`. * This should improve readability for future improvements in `ChatClient`, like the one mentioned in the issue #873.
This PR adds a new evaluator to judge correctness of a response. It is based loosely on LlamaIndex's `correctness.py` evaluator. Note that I couldn't decide the best way to provide...
Fixes #924
This PR is to provide the feature https://github.com/spring-projects/spring-ai/issues/880 Change: 1) New class QueryTransformerQuestionAnswerAdvisor extends QuestionAnswerAdvisor 2) Call the AI model to transfer the query before call the vector search Thank...
Ensure streaming works in "real-time" fix: Ensure streaming chunks are emitted individually to the client Problem: The previous implementation combined multiple chunks into a single response, causing all data to...
this PR is add YiAi model client and has passed unit testing. I can provide my api_key if needed for testing the PR content: chat client spring starter unit test...
Thank you for taking time to contribute this pull request! You might have already read the [contributor guide][1], but as a reminder, please make sure to: * Sign the [contributor...
Removed the duplicate entry of the 'spring.ai.vectorstore.elasticsearch.initialize-schema' property from the Elasticsearch Vector Store documentation to enhance clarity and avoid confusion.