Exit 1Z0-184-25 Oracle AI Vector Search Professional
Question 1 of 5
0% complete
Q1 Single choice

In the following Python code, what is the significance of prepending the source filename to each text chunk before storing it in the vector database?

bash

CollapseWrapCopy

docs = [{"text": filename + "|" + section, "path": filename} for filename, sections in faqs.items() for section in
sections]

# Sample the resulting data docs[:2]

  • A

    It preserves context and aids in the retrieval process by associating each vectorized chunk with its original source file

  • B

    It helps differentiate between chunks from different files but has no impact on vectorization

  • C

    It speeds up the vectorization process by providing a unique identifier for each chunk

  • D

    It improves the accuracy of the LLM by providing additional training data

Previous Next