

Much of the concept of “intellectual property”. Here’s a good essay by Richard Stallman:
https://www.gnu.org/philosophy/not-ipr.en.html
Copyright by and large needs to be abolished. Patents in software are nonsensical, and elsewhere they should be drastically scaled back. Trademark is alright, with a few adjustments needed.
But all of the above is hiding behind a concept of “property” that just does not apply to intangible things, and we need to stop using that term to describe them.

Not sure how ollama integration works in general, but these are two good libraries for RAG:
https://github.com/facebookresearch/faiss
https://pypi.org/project/chromadb/