Skip to content

[Question]: When searching vector databases, queries that have no parameters that will not meet the threshold requirements will be excluded. #13571

Closed as not planned
@union-cmd

Description

@union-cmd

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

def rag(self, memory, index, prompt, k=1):
chat_engine = index.as_chat_engine(
chat_mode="condense_plus_context",
memory=memory,
temperature=0.9,
similarity_top_ps=0.9,
similarity_top_k=k,
)
result = self.transform_str(chat_engine.chat(prompt))
return result

this is my code, I want queries that do not meet the threshold requirement to be excluded when searching the index.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions