Skip to content

Add Follow-Up Queries in Suggest Queries Mode#92

Open
CShorten wants to merge 2 commits into
mainfrom
suggest-follow-up-queries
Open

Add Follow-Up Queries in Suggest Queries Mode#92
CShorten wants to merge 2 commits into
mainfrom
suggest-follow-up-queries

Conversation

@CShorten

@CShorten CShorten commented May 21, 2026

Copy link
Copy Markdown
Member

Sample Usage:

response = qa.suggest_queries(
  conversation=[
    {"role": "user", "content": "What types of contracts are in the dataset?"},
    {"role": "assistant", "content": "The dataset contains lease agreements, NDAs, and service contracts."},
  ],
  num_queries=1
)

for query in response.queries:
  print(query)

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@CShorten CShorten self-assigned this May 21, 2026
Comment thread weaviate_agents/query/query_agent.py Outdated
if instructions is not None:
request_body["instructions"] = instructions
if conversation is not None:
request_body["conversation"] = ConversationContext(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backend expects the request field "conversation_context" here, so I think this isn't getting passed to the backend otherwise. (same below for async)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 Ah fantastic catch, thank you so much! Just pushed the update.

@CShorten CShorten marked this pull request as ready for review May 26, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants