You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Train a Language Model for Converting Human Queries to GraphQL for Unbody GraphQL Content API
Objective
Train a language model to accurately translate natural language queries into GraphQL queries, in line with our data schemas and syntax used in the Unbody GraphQL endpoint built on Weaviate.
Tasks
Create a Training Dataset @amirhouieh: Develop a dataset with examples of natural language and corresponding GraphQL queries.
Model Training @amirhouieh: Train the model for translating human language to GraphQL format.
Integration @jeangovil: Integrate the trained model with our GraphQL content API.
Deployment @jeangovil: Deploy the model for operational use.
How It Should Work
Receive a query in natural language.
Language model agent generates a GraphQL query.
GraphQL Level Implementation
Implement a new Agent method alongside GET and AGGREGATE methods to translate natural language inputs to structured GraphQL queries.
{
Get {
GoogleCalendarEvent(
nearText: {
concepts: ["city hall portal"],
properties: ["title", "description", "attachments"]
}
) {
titlestartDateendDate_additional {
generate(
singleResult: {
prompt: """ Analyze the event details: {title}, {startDate}, {endDate}. Answer the question: When are we going to launch the city hall portal? """
}
) {
singleResult
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
Train a Language Model for Converting Human Queries to GraphQL for Unbody GraphQL Content API
Objective
Train a language model to accurately translate natural language queries into GraphQL queries, in line with our data schemas and syntax used in the Unbody GraphQL endpoint built on Weaviate.
Tasks
How It Should Work
GraphQL Level Implementation
Implement a new
Agent
method alongsideGET
andAGGREGATE
methods to translate natural language inputs to structured GraphQL queries.Examples
Find our financial reports for the last two years
Who is working on the LPE project
Summarize my recent emails with Nicole
When are we going to launch city hall portal
The text was updated successfully, but these errors were encountered: