if you want some more options (chunking, models, +more) check here
https://github.com/marqo-ai/marqo and an example for RAG using context aware trimming of text for fitting into context windows
https://github.com/marqo-ai/marqo/blob/mainline/examples/GPT...