spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.33k stars 857 forks source link

Remove ContentFormatter from Document #1782

Open markpollack opened 5 days ago

markpollack commented 5 days ago

This came from the early days of the project and was inspired by llamaindex. In practice, the formatting of the prompt for different use cases, to include metadata or not, seems to be best handled outside the Document class.

If you have a good use case for keeping this functionality in Document, please comment.