Future-House / paper-qa

High accuracy RAG for answering questions from scientific documents with citations
Apache License 2.0
6.15k stars 578 forks source link

Adding missing metadata without semantic scholar and crossref API keys #570

Open Litreviewing opened 2 days ago

Litreviewing commented 2 days ago

Where can I find the metadata information for files and how can I input them using CLI?

dosubot[bot] commented 2 days ago

I found a similar open issue discussing manually adding metadata without using external API keys. You can add metadata directly using the Docs object in Python. Here's an example:

from paperqa import Docs

docs = Docs()
docs.add(
    path="your_document_path",
    title="Your Document Title",
    doi="Your Document DOI",
    authors=["Author One", "Author Two"]
)

For the CLI, while specific commands to input metadata directly aren't detailed, you can use the pqa index /path/to/directory command to build a search index from your local files. This will gather metadata automatically if available [1][2].

To continue talking to Dosu, mention @dosu.