Gen AI Day 42

Last Updated :
Discuss
Comments

Question 1

What is the main goal of semantic search?

  • A

    To match keywords exactly

  • B

    To understand the meaning behind user queries

  • C

    To count word frequencies

  • D

    To extract document metadata

Question 2

Which library is used for similarity search in the implementation?

  • A

    Milvus

  • B

    FAISS

  • C

    Pinecone

  • D

    ChromaDB

Question 3

What is the role of the SentenceTransformer model in the pipeline?

  • A

    It chunks text

  • B

    It generates embeddings for documents and queries

  • C

    It cleans text

  • D

    It visualizes similarity scores

Question 4

Why is text chunking performed before embedding generation?

  • A

    To compress the dataset

  • B

    To reduce memory usage

  • C

    To improve retrieval accuracy and performance

  • D

    To remove duplicates

Question 5

What type of FAISS index is used in this implementation?

  • A

    IndexHNSWFlat

  • B

    IndexIVFFlat

  • C

    IndexFlatIP

  • D

    IndexFlatL2

Question 6

What does the semantic_search_best() function do?

  • A

    Builds FAISS indexes

  • B

    Encodes documents into embeddings

  • C

    Searches and displays top semantically relevant document snippets

  • D

    Cleans and tokenizes input text

There are 6 questions to complete.

Take a part in the ongoing discussion