parhamrahmani / SongScope

0 stars 0 forks source link

OPENAI API - Functions - searching for reviews?? #7

Open parhamrahmani opened 3 weeks ago

parhamrahmani commented 3 weeks ago

a library or any ai function that helps the open ai to search the internet for music reviews especially from pitchfork. See the aufgabe 5 of USW moodle to understand.


functions = [
    {
        "type": "function",
        "function": {
            "name": "tavily_search",
            "description": "Get information on recent events from the web.",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "The search query to use."
                    }
                },
                "required": ["query"]
            }
        }
    }
]

function_lookup = {
    "tavily_search": tavily_search,
    "get_github_repo_content": get_github_repo_content
}

Don't code anything yet, just research for something like tavily or use tavily itself to get reviews from the internet. Then save the results in a document and put it in docs folder. Then we will test this together next week to add this function

parhamrahmani commented 2 weeks ago

find any database from pitchfork