Find answers from the community

Updated last year

Hello i ve build an index is there a way

Hello, i've build an index, is there a way to query it but just return the top k relevant nodes without the generated response step?
b
B
3 comments
I'd look behind the scenes of what similarity_top_k option does behind the scenes, Retrievers.
cool i done it with
Plain Text
      retriever = VectorIndexRetriever(
            index=self.index,
            similarity_top_k=100,
        )

        docs = retriever.retrieve(prompt)
Add a reply
Sign up and join the conversation on Discord