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

Feature: resolve web links in messages to embed text into prompt #371

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

7flash
Copy link

@7flash 7flash commented Jun 21, 2023

Before:

image

After:

image

@mariodian
Copy link
Contributor

Great idea! Although it only works with specific websites that are able to return a meaningful and short output.

Is there perhaps a tool that can summarize any web page of any size and you'd feed that to GPT?

@7flash
Copy link
Author

7flash commented Jun 23, 2023

Great idea! Although it only works with specific websites that are able to return a meaningful and short output.

Is there perhaps a tool that can summarize any web page of any size and you'd feed that to GPT?

There are such tools, and they can be used complementary with this feature by running local proxy server towards them. In fact, that's the main use case for me, - I am running caddy file server towards all my local codebase and then insert links pointing to files into prompt i.e. like "http://localhost:8080/home/repo/file.tsx"

@7flash
Copy link
Author

7flash commented Aug 1, 2023

@mariodian following example of Caddyfile I am using as a proxy server to my files

{
	admin 127.0.0.1:2023
}

:8080
root * /home/sevenflash/Code

header * {
	Access-Control-Allow-Origin "*"
	Access-Control-Allow-Methods "OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE"
	Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"
	Access-Control-Expose-Headers "Content-Length,Content-Range"
}

file_server {
	browse
	hide index.html
}

Then I can insert link "http://localhost:8080/galaxy-tauri-first/src/App.tsx" and it will be resolved into actual recent contents of the file.

@7flash
Copy link
Author

7flash commented Apr 16, 2024

can use this https://github.com/jina-ai/reader

Great idea! Although it only works with specific websites that are able to return a meaningful and short output.

Is there perhaps a tool that can summarize any web page of any size and you'd feed that to GPT?

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

Successfully merging this pull request may close these issues.

None yet

2 participants