Skip to content
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

How to calculate the Correct Path Rate metric? #18

Open
dhx20150812 opened this issue Aug 11, 2024 · 0 comments
Open

How to calculate the Correct Path Rate metric? #18

dhx20150812 opened this issue Aug 11, 2024 · 0 comments

Comments

@dhx20150812
Copy link

Hi, @Yifan-Song793

Thanks for releasing this dataset and code.

I have a question: how to calculate the correct path rate based on the tool execution log, for example, for the query and golden solution path:

{
    "query": "give me the number of movies directed by Sofia Coppola",
    "solution": [
        "GET /search/person",
        "GET /person/{person_id}/movie_credits"
    ]
},

I have the following execution log:

Query: give me the number of movies directed by Sofia Coppola
Planner: search for the person with the name "Sofia Coppola"  
API response: Sofia Coppola's person_id is 4567  
collect the list of movies directed by Sofia Coppola whose person_id is 4567  
API response: The list of movies directed by Sofia Coppola includes The Virgin Suicides, Lost in Translation, Marie Antoinette, Somewhere, The Bling Ring, A Very Murray Christmas, and The Beguiled.  
count the number of movies in the list directed by Sofia Coppola  
API response: The number of movies directed by Sofia Coppola is 7.  
Thought: I am finished executing a plan and have the information the user asked for or the data the user asked to create  
Final Answer: Sofia Coppola has directed a total of 7 movies.
API Selector: GET /search/person to search for Sofia Coppola  
API response: Sofia Coppola's person_id is 4567  
Instruction: Continue. Collect the list of movies directed by Sofia Coppola whose person_id is 4567.  
GET /person/4567/movie_credits to collect the list of movies directed by Sofia Coppola.  
API response: The list of movies directed by Sofia Coppola includes The Virgin Suicides, Lost in Translation, Marie Antoinette, Somewhere, The Bling Ring, A Very Murray Christmas, and The Beguiled.  
Instruction: Continue. Count the number of movies in the list directed by Sofia Coppola.  
No API call needed.  
Final Answer: Sofia Coppola has directed a total of 7 movies.

So how should I determine whether the actual execution path matches the golden standard?

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

No branches or pull requests

1 participant