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

Ability to add headers to source ( better integration with Jina AI) #538

Open
angelotc opened this issue Aug 11, 2024 · 2 comments
Open

Comments

@angelotc
Copy link

Is your feature request related to a problem? Please describe.
We can assign a url to the source. It would be nice if we could also pass in an headers such as API key to use our jina ai credits.

Describe the solution you'd like
Perhaps a source_config param?

    smart_scraper_graph = SmartScraperGraph(
        prompt="Find the yelp link, name, website, number of average yelp reviews , summary of yelp_reviews, specialties, phone,  and their website",
        source=f"https://s.jina.ai/{url_encoded_query}",
        source_config= {
            headers: {
                "Authorization": f"Bearer {JINA_API_KEY}"
            }
        },
        config=graph_config,
        schema = Contractor
    )

Describe alternatives you've considered
n/a

@angelotc angelotc changed the title Ability to add headers to source Ability to add headers to source ( better integration with Jina AI) Aug 11, 2024
@VinciGit00
Copy link
Collaborator

Why you want embeddings? I never noticed about that and as I can see from the website Juba is used for embeddings

@angelotc
Copy link
Author

angelotc commented Aug 12, 2024

Why you want embeddings? I never noticed about that and as I can see from the website Juba is used for embeddings

Less so about embeddings - moreso of the fact that they offer free / low-cost web search and LLM friendly site data.

https://jina.ai/reader/
https://www.youtube.com/watch?v=QxHE4af5BQE&t=1035s

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

2 participants