-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support for pdf file context provider #483
Comments
@rpg2807 We have documentation here on how to add a context provider: https://continue.dev/docs/customization/context-providers#building-your-own-context-provider Once you have a new context provider (the embeddings provider included), you can add it you your from continuedev.src.continuedev.plugins.context_providers.github import GitHubIssuesContextProvider
...
config=ContinueConfig(
...
context_providers=[
GitHubIssuesContextProvider(
repo_name="continuedev/continue", # change to whichever repo you want to use
auth_token="<my_github_auth_token>",
)
]
) The embeddings context provider might work, so you could give it a try, but we will be working on it later this week and I can share when we have a production-ready version : ) |
It might make sense (and be easier) to just add .pdf functionality to the URLContextProvider, just as basically an if statement if the URL is a .pdf, and then decode it to text in the specific way needed. Could just implement that in this function without needing to rewrite any of the context provider logic |
Thanks for the suggestion. That does look like an easier way around.
Could you please instruct how could one add a python module to be used in the context provider? |
@rpg2807 This is a limitation of running the server as a "frozen" binary. Any packages not included in the binary cannot be imported afterward, so you'll have to bundle it into the binary. You did the right thing by adding it to requirements.txt, but sometimes pyinstaller misses a few imports when building the binary, which you'll have to list in the |
@rpg2807 did you make progress here ? |
Yes, any progress here? I have docs that are contained in pdf's, and this would be really nice inside continue! 🚀 |
First of all, thanks for the extension. It seems like a great tool.
I tried supplying a link to online pdf file using @url but it seemed to read the encodes pdf file as plain text.
Please show me how to add pdf file content as context or add the feature.
Btw, I see embedding context provider in the plug-in directory. Not sure how to use it though.
The text was updated successfully, but these errors were encountered: