This is a simple Agentic RAG example that uses Mastra framework with the official @mastra/elasticsearch package. This code example is part of the article published in Elasticsearch Labs of Elastic.
ik_max_word: 会将文本做最细粒度的拆分,比如会将“中华人民共和国国歌”拆分为“中华人民共和国,中华人民,中华,华人 ...