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

feat: enhance .file for loading resources from diverse sources #1155

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Feb 8, 2025

After this PR is merged, .file supports the new syntax .file <loader>:<resource>, and .rag also supports the new type of resource <loader>:<resource> when adding documents.

document_loaders:
  jina: 'curl -fsSL https://r.jina.ai/$1 -H "Authorization: Bearer <jina_api_key>"'  # jina.ai is free
  git: >
    sh -c "yek $1 --json | jq '[.[] | { path: .filename, contents: .content }]'"
.file jina:https://huggingface.co/deepseek-ai/DeepSeek-R1 -- 
     What is the difference between DeepSeek-R1-Zero and DeepSeek-R1
> .rag
...
? Add documents: jina:https://huggingface.co/deepseek-ai/DeepSeek-R1

close #1123

@sigoden sigoden merged commit eb527ea into main Feb 8, 2025
3 checks passed
@sigoden sigoden deleted the feat branch February 8, 2025 00:46
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.

Enhance .file Syntax for Loading Resources from Diverse Sources
1 participant