Skip to content

Query agent #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 6, 2025
Merged

Query agent #1

merged 3 commits into from
May 6, 2025

Conversation

augustas1
Copy link
Collaborator

Initial Query Agent pull request.

Depends on weaviate/typescript-client#292.

Has weaviate-client as a peer dependency and can be consumed like this:

# once published
npm install weaviate-client @weaviate/agents
import { connectToWeaviateCloud } from "weaviate-client";
import { QueryAgent } from "@weaviate/agents";

const client = await connectToWeaviateCloud("cluster-url", { authCredentials: "api-key" });
const queryAgent = new QueryAgent(client, ["Emails"]);

const response = await queryAgent.run("What is a common topic in the emails?");
response.display();

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link

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

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 Secrets high 0   medium 0   low 0   info 0 View in Orca

@malgamves
Copy link

Everything looks good @augustas1 ! Do you have any tests planned for the repo?

Copy link

@malgamves malgamves left a comment

Choose a reason for hiding this comment

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

I couple files are missing, LICENSE, README etc, I could help with some of these as I work on examples if you'd like.

"keywords": [
"weaviate"
],
"author": "Weaviate",
"license": "SEE LICENSE IN LICENSE"
"license": "SEE LICENSE IN LICENSE",

Choose a reason for hiding this comment

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

I think the LICENSE file is missing @augustas1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it's already on main

@augustas1
Copy link
Collaborator Author

Yes, I'll add README, tests and CI later on. Didn't want to have a mega PR :).
Re examples, I think we usually have a link to the docs (once we have them).

@IchordeDionysos
Copy link

@augustas1 is there a rough timeline for when we could starting using the QueryAgent in TypeScript? 😍

Copy link

@tsmith023 tsmith023 left a comment

Choose a reason for hiding this comment

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

For the CI, feel free to copy what you want/need from the TS client's workflow file

@augustas1
Copy link
Collaborator Author

augustas1 commented May 6, 2025

@augustas1 is there a rough timeline for when we could starting using the QueryAgent in TypeScript? 😍

@IchordeDionysos I think Query Agent should be there in 1-2 weeks

@augustas1 augustas1 merged commit c534a27 into main May 6, 2025
3 checks passed
@augustas1 augustas1 deleted the query-agent branch May 6, 2025 09:45
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.

4 participants