I tried to Practice the RAG using Genkit

I tried to Practice the RAG using Genkit and it's fine with pdf and smaller csv files. when i tried to chunk the 4900+ lines of csv file it's divide those lines into 3 part
line 1 to 9
line 10 to 20
line 21 to 4900+
why is that
i tried this using llm-chunk library on node js

i got many errors.
it 'll chunk correctly if i did split using sentence but this time genkit ui will stoped and if i tried to see the trace on local pc inside of the .genkit/trace/traceid
it's freeze and closed the vs code.

i asked gemini about this and it's gives me it's a network error. but i already disabled my firewall bcz of gemini suggestion and i am using high speed internet connection.

here is the error code
Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-001:embedContent: fetch failed


i used to save the chunk on a txt file using nodejs and here is that file also
and the chuck config

{splitter:'sentence',minLength:50,maxLength:100}
Was this page helpful?