RAG | chromadb is retrieving the old vectors after first attemp not on new document
Actually i am building rag chatbot with gradio where the issue is that on first pdf file it give the actual response to that pdf file what the question is asked but if i upload new pdf and ask any question the pdf is loading correctly and its embeddings are also being created correctly but when it goes to chromadb and retrieve the vectors .as_retreiver() it gives result/ response from the previous pdf file how it is storing the data and why the data is not being updated in chromadb.
below is my code