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

[Question]: Google Search API #990

Open
ythefly opened this issue Sep 22, 2024 · 4 comments
Open

[Question]: Google Search API #990

ythefly opened this issue Sep 22, 2024 · 4 comments
Labels
question Further information is requested

Comments

@ythefly
Copy link

ythefly commented Sep 22, 2024

What is your question?

After upgrading to 1.423 I can not add google search API on the setup page. And when I send a link to do a extract wisdom from sites like yahoo finance. It won't summarize the article for me like it used to do with previous versions. The previous version not written in Go performed so much easier. How do I go about configuring this new version to have the model use google search API to search and summarize the web articles I pass in?

@ythefly ythefly added the question Further information is requested label Sep 22, 2024
@charlie-romeo
Copy link

Hey @ythefly, Not sure about an API issue, but my understanding of the Fabric workflow at the CLI is text input | fabric >> output.txt. I haven't tried with non-html links, but here is what worked for me using groq/llama3 passing only a URL instead of a text file:
echo "https://website.com/interesting-article.html" | fabric -p summarize >> article-summary.md

If you are getting an error of some kind or invalid input, I would think it's the LLM API that is expecting something different.
post your CLI input and we'll see if we can help.

@ythefly
Copy link
Author

ythefly commented Sep 23, 2024

Thanks Charlie, the command line you given worked. When i was using the fabric using python (1.4 and under) I used to use this command: pbpaste | fabric --stream --pattern extract_wisdom_dm. I would just copy a website link and made an alias which point to this command called extractwisdom and I could just see a extract wisdom summary coming up. So now that i have to use the word echo before the "quoted website link" how do I format this command again using the same alais without having to add any quotation marks?

@charlie-romeo
Copy link

charlie-romeo commented Sep 24, 2024

Cool. you need the quotes for echo. you could do something like this in your bashrc/zshrc:
alias <alias-name>='echo "$(pbpaste)" | fabric -p extract_wisdom' .
as long as you use single quotes around the whole alias and double around $(expansion) you should be good. try it in the CLI first and then just drop that in as an alias.

from there you could do a xw >> ~/wisdom-folder/artilce-wisdom.md.
very cool

@ythefly
Copy link
Author

ythefly commented Sep 25, 2024

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants