Hi all, I built a vector from csv (about 20 rows) with each row as a Document, when I query such as "How many rows..." it only responds 2 rows, it depends on the similarity_top_k variable , I try with 3, and it returns 3. Can I get the exact row number of the csv file?
documents = [] with open(filename) as file_obj: reader_obj = csv.reader(file_obj) heading = next(file_obj) header = list(heading.strip().split(','))
for row in reader_obj: record = {} for i, value in enumerate(row): record[header[i]] = ' '.join(value.split())
And now it's not more rows, it's turning on to documents, so like @WhiteFang_Jr said, you can store on the metadata each row number, to use it when needed