paper-qa
paper-qa copied to clipboard
High accuracy RAG for answering questions from scientific documents with citations
I have a paid account and my API key works on the HuggingFace demo, but when I try to call paperqa from my python code I'm getting the OpenAI communication...
This adds a method adversarial_query. Adversarial queries first generate an answer, then asks the LLM to find problems with the answer, then finally generates the final response so that it...
I'm trying to add 250 documents but I'm hitting this error. It seems that this error shows up when trying to add >100 documents. Is that a hard limit I'm...
Hi: I'm trying to swap out: `llm = ChatOpenAI(temperature = temperature, model_name = 'gpt-3.5-turbo', max_tokens = max_output_size) ` with: `llm = HuggingFaceHub(repo_id = 'mosaicml/mpt-7b-chat', model_kwargs = { "temperature": temperature, "max_length":...
For me, using any model all I get is hallucination.
When using the key_filter argument in docs.query() I do still get answers from more sources than just from the documents with the specified keys. What could be the issue here?
[19515.pdf](https://github.com/whitead/paper-qa/files/11532114/19515.pdf) The text of this PDF (italian legal case) for some reason is not extracted. AI answer: 'The provided context describes a document written in a code or cipher, with...
Hello! Do you see any alterantive to use an Open Source Free alternative to OpenAI API?
Hi @whitead , I used the following code block and used a quantized LLM from here: https://huggingface.co/Pi3141 The model I used: https://huggingface.co/Pi3141/gpt4-x-alpaca-native-13B-ggml ```python3 import paperscraper from paperqa import Docs from...