parthsarthi03 / raptor

The official implementation of RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval
https://arxiv.org/abs/2401.18059
MIT License
970 stars 135 forks source link

Incorrect API key provided #61

Open kaoutaar opened 1 week ago

kaoutaar commented 1 week ago

i am trying to run raptor with customized models (llama.cpp and huggingface), hence no openai model, in your demo, you indicated to add any string as an API key:

NOTE: An OpenAI API key must be set here for application initialization, even if not in use. If you're not utilizing OpenAI models, assign a placeholder string (e.g., "not_used"). import os os.environ["OPENAI_API_KEY"] = "your-openai-key"

doing this i got this error:

Error code: 401 - {'error': {'message': 'Incorrect API key provided: your-ope***-key. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} TypeError: expected string or buffer

parthsarthi03 commented 4 days ago

Hi, are all your models i.e. the summarization model, qa model, and the embedding model custom models? Because, all three of these default to the OpenAI models.

Ningyu-y commented 2 days ago

Hi, are all your models i.e. the summarization model, qa model, and the embedding model custom models? Because, all three of these default to the OpenAI models.

Can you share the prompts used by the QA model for each dataset?