paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

High accuracy RAG for answering questions from scientific documents with citations

Results 248 paper-qa issues
Sort by recently updated
recently updated
newest added

``` from paperqa import Docs, LlamaEmbeddingModel, OpenAILLMModel from openai import AsyncOpenAI # start llamap.cpp client with local_client = AsyncOpenAI( base_url="http://localhost:8080/v1", api_key = "sk-no-key-required" ) docs = Docs(client=local_client, embedding=LlamaEmbeddingModel(), llm_model=OpenAILLMModel(config=dict(model="my-llm-model", temperature=0.1,...

Hi: on my Mac, I just updated paperqa from 3.13.2 to the latest, but now I'm getting this "cannot pickle '_thread.RLock' object" exception when I try to import paperqa. Any...

Hi, I tried to use google gemini with paper-qa using the `ChatGoogleGenerativeAI(modeol='gemini-pro')` from `langchain_google_genai` using the 2nd sample of ChatAnthropic(). If I setup API key correctly, then I see `self.name...

Hey @whitead, I think it would be really nice if I could spin up a paperqa instance without waiting for all papers to be OCR'd and embedded each time. Would...

I am running paper-qa in a conda environment. I tried installing the library using pip but I get a ModuleNotFoundError when trying to import it. I then just cloned the...

After some inspection, it appears that the `Docs` class may have no keyword option for an embeddings object and is hard-coded to use the `OpenAIEmbeddings` by default, as follows: https://github.com/whitead/paper-qa/blob/84f13ea32c22b85924cd681a4b5f4fbd174afd71/paperqa/docs.py#L56...

I'm running on windows 10 cpu only no gpu Error: GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:15149: cgraph->nodes[cgraph->n_nodes - 1] == tensor GGML_ASSERT: C:\Users\user\AppData\Local\Temp\pip-install-l0_yao9s\llama-cpp-python_686671b6d7b8440a98e23acb5bc6a41a\vendor\llama.cpp\ggml.c:4326: ggml_nelements(a) == (ne0*ne1*ne2*ne3) Repeated trials yield same results. Local llm: TheBloke/Llama-2-7B-Chat-GGUF...

Using python 3.12 I obtained the following error: ``` Building wheel for faiss-cpu (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for faiss-cpu (pyproject.toml) did not run successfully. │ exit...

Space failed. Exit code: 1. Reason: Traceback (most recent call last): File "app.py", line 2, in import paperqa File "/home/user/.local/lib/python3.8/site-packages/paperqa/__init__.py", line 1, in from .docs import Answer, Docs, PromptCollection, Doc,...