Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [20:07:03] Starting paper search for 'Here are three unique keyword searches that can help answer the question How the SDN controller works within
- FANET?'.
- New file to index: Zhu et al_2023_Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric.pdf...
- [20:07:07] Failed to parse all of title, DOI, and authors from the ParsingSettings.structured_citation_prompt's response Here is the extracted
- information in JSON format:
- ```
- {
- "title": "Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric Software-Deï¬ned FANET",
- "authors": ["Zhu, Liehuang", et al],
- "doi": null
- }
- ```
- Note that I assumed the publication date is 2023 as there is no author date provided. Also, since DOI (Digital Object Identifier) is not
- specified in the MLA citation, I returned it as `null`., consider using a manifest file or specifying a different citation prompt.
- ╭─────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────╮
- │ /data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py:321 in aadd │
- │ │
- │ 318 │ │ │ if clean_text.startswith("json"): │
- │ 319 │ │ │ │ clean_text = clean_text.replace("json", "", 1) │
- │ 320 │ │ │ try: │
- │ ❱ 321 │ │ │ │ citation_json = json.loads(clean_text) │
- │ 322 │ │ │ │ if citation_title := citation_json.get("title"): │
- │ 323 │ │ │ │ │ title = citation_title │
- │ 324 │ │ │ │ if citation_doi := citation_json.get("doi"): │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/__init__.py:346 in loads │
- │ │
- │ 343 │ if (cls is None and object_hook is None and │
- │ 344 │ │ │ parse_int is None and parse_float is None and │
- │ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
- │ ❱ 346 │ │ return _default_decoder.decode(s) │
- │ 347 │ if cls is None: │
- │ 348 │ │ cls = JSONDecoder │
- │ 349 │ if object_hook is not None: │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:337 in decode │
- │ │
- │ 334 │ │ containing a JSON document). │
- │ 335 │ │ │
- │ 336 │ │ """ │
- │ ❱ 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
- │ 338 │ │ end = _w(s, end).end() │
- │ 339 │ │ if end != len(s): │
- │ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:355 in raw_decode │
- │ │
- │ 352 │ │ try: │
- │ 353 │ │ │ obj, end = self.scan_once(s, idx) │
- │ 354 │ │ except StopIteration as err: │
- │ ❱ 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
- │ 356 │ │ return obj, end │
- │ 357 │
- ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
- LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Failed to execute tool call for tool paper_search.
- + Exception Group Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- | content = await tool._tool_fn(
- | ^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 127, in paper_search
- | index = await get_directory_index(settings=self.settings)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 485, in get_directory_index
- | async with anyio.create_task_group() as tg:
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 736, in __aexit__
- | raise BaseExceptionGroup(
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- +-+---------------- 1 ----------------
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1230, in aembedding
- | openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 608, in _get_openai_client
- | _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
- | ^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/openai/_client.py", line 319, in __init__
- | raise OpenAIError(
- | openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3224, in aembedding
- | response = await init_response
- | ^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1275, in aembedding
- | raise OpenAIError(
- | litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 377, in process_file
- | await tmp_docs.aadd(
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 383, in aadd
- | if await self.aadd_texts(texts, doc, all_settings, embedding_model):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 428, in aadd_texts
- | await embedding_model.embed_documents(texts=[t.text for t in texts])
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/llms.py", line 74, in embed_documents
- | response = await aembedding(
- | ^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1589, in wrapper_async
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1409, in wrapper_async
- | result = await original_function(*args, **kwargs)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3233, in aembedding
- | raise exception_type(
- | ^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 8199, in exception_type
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 6489, in exception_type
- | raise AuthenticationError(
- | litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- +------------------------------------
- [20:07:08] Starting paper search for 'Software Defined Network, Tactical, Year: 2015-2024'.
- New file to index: Zhu et al_2023_Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric.pdf...
- [20:07:11] Failed to parse all of title, DOI, and authors from the ParsingSettings.structured_citation_prompt's response Here is the extracted
- information in JSON format:
- ```
- {
- "title": "Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric Software-Defined FANET.",
- "authors": ["Zhu, Liehuang", "et al."],
- "doi": null
- }
- ```
- Note that the DOI field is left as `null` since it's not present in the MLA citation., consider using a manifest file or specifying a
- different citation prompt.
- ╭─────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────╮
- │ /data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py:321 in aadd │
- │ │
- │ 318 │ │ │ if clean_text.startswith("json"): │
- │ 319 │ │ │ │ clean_text = clean_text.replace("json", "", 1) │
- │ 320 │ │ │ try: │
- │ ❱ 321 │ │ │ │ citation_json = json.loads(clean_text) │
- │ 322 │ │ │ │ if citation_title := citation_json.get("title"): │
- │ 323 │ │ │ │ │ title = citation_title │
- │ 324 │ │ │ │ if citation_doi := citation_json.get("doi"): │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/__init__.py:346 in loads │
- │ │
- │ 343 │ if (cls is None and object_hook is None and │
- │ 344 │ │ │ parse_int is None and parse_float is None and │
- │ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
- │ ❱ 346 │ │ return _default_decoder.decode(s) │
- │ 347 │ if cls is None: │
- │ 348 │ │ cls = JSONDecoder │
- │ 349 │ if object_hook is not None: │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:337 in decode │
- │ │
- │ 334 │ │ containing a JSON document). │
- │ 335 │ │ │
- │ 336 │ │ """ │
- │ ❱ 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
- │ 338 │ │ end = _w(s, end).end() │
- │ 339 │ │ if end != len(s): │
- │ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:355 in raw_decode │
- │ │
- │ 352 │ │ try: │
- │ 353 │ │ │ obj, end = self.scan_once(s, idx) │
- │ 354 │ │ except StopIteration as err: │
- │ ❱ 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
- │ 356 │ │ return obj, end │
- │ 357 │
- ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
- LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Failed to execute tool call for tool paper_search.
- + Exception Group Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- | content = await tool._tool_fn(
- | ^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 127, in paper_search
- | index = await get_directory_index(settings=self.settings)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 485, in get_directory_index
- | async with anyio.create_task_group() as tg:
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 736, in __aexit__
- | raise BaseExceptionGroup(
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- +-+---------------- 1 ----------------
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1230, in aembedding
- | openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 608, in _get_openai_client
- | _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
- | ^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/openai/_client.py", line 319, in __init__
- | raise OpenAIError(
- | openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3224, in aembedding
- | response = await init_response
- | ^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1275, in aembedding
- | raise OpenAIError(
- | litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 377, in process_file
- | await tmp_docs.aadd(
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 383, in aadd
- | if await self.aadd_texts(texts, doc, all_settings, embedding_model):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 428, in aadd_texts
- | await embedding_model.embed_documents(texts=[t.text for t in texts])
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/llms.py", line 74, in embed_documents
- | response = await aembedding(
- | ^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1589, in wrapper_async
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1409, in wrapper_async
- | result = await original_function(*args, **kwargs)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3233, in aembedding
- | raise exception_type(
- | ^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 8199, in exception_type
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 6489, in exception_type
- | raise AuthenticationError(
- | litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- +------------------------------------
- Starting paper search for 'Cognitive Radio, FANET, Controller, Networking, Year: 2018-2024'.
- New file to index: Zhu et al_2023_Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric.pdf...
- [20:07:15] Failed to parse all of title, DOI, and authors from the ParsingSettings.structured_citation_prompt's response Here is the extracted
- information in JSON format:
- ```
- {
- "title": "Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric Software-Defined FANET.",
- "authors": ["Zhu, Liehuang", "Md Monjurul Karim", "Kashif Sharif", "Chang Xu", "Fan Li"],
- "doi": null
- }
- ```
- Note that I was unable to find a DOI (digital object identifier) in the provided citation, so it is represented as `null`., consider using
- a manifest file or specifying a different citation prompt.
- ╭─────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────╮
- │ /data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py:321 in aadd │
- │ │
- │ 318 │ │ │ if clean_text.startswith("json"): │
- │ 319 │ │ │ │ clean_text = clean_text.replace("json", "", 1) │
- │ 320 │ │ │ try: │
- │ ❱ 321 │ │ │ │ citation_json = json.loads(clean_text) │
- │ 322 │ │ │ │ if citation_title := citation_json.get("title"): │
- │ 323 │ │ │ │ │ title = citation_title │
- │ 324 │ │ │ │ if citation_doi := citation_json.get("doi"): │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/__init__.py:346 in loads │
- │ │
- │ 343 │ if (cls is None and object_hook is None and │
- │ 344 │ │ │ parse_int is None and parse_float is None and │
- │ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
- │ ❱ 346 │ │ return _default_decoder.decode(s) │
- │ 347 │ if cls is None: │
- │ 348 │ │ cls = JSONDecoder │
- │ 349 │ if object_hook is not None: │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:337 in decode │
- │ │
- │ 334 │ │ containing a JSON document). │
- │ 335 │ │ │
- │ 336 │ │ """ │
- │ ❱ 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
- │ 338 │ │ end = _w(s, end).end() │
- │ 339 │ │ if end != len(s): │
- │ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:355 in raw_decode │
- │ │
- │ 352 │ │ try: │
- │ 353 │ │ │ obj, end = self.scan_once(s, idx) │
- │ 354 │ │ except StopIteration as err: │
- │ ❱ 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
- │ 356 │ │ return obj, end │
- │ 357 │
- ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
- LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Failed to execute tool call for tool paper_search.
- + Exception Group Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- | content = await tool._tool_fn(
- | ^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 127, in paper_search
- | index = await get_directory_index(settings=self.settings)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 485, in get_directory_index
- | async with anyio.create_task_group() as tg:
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 736, in __aexit__
- | raise BaseExceptionGroup(
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- +-+---------------- 1 ----------------
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1230, in aembedding
- | openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 608, in _get_openai_client
- | _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
- | ^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/openai/_client.py", line 319, in __init__
- | raise OpenAIError(
- | openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3224, in aembedding
- | response = await init_response
- | ^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1275, in aembedding
- | raise OpenAIError(
- | litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 377, in process_file
- | await tmp_docs.aadd(
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 383, in aadd
- | if await self.aadd_texts(texts, doc, all_settings, embedding_model):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 428, in aadd_texts
- | await embedding_model.embed_documents(texts=[t.text for t in texts])
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/llms.py", line 74, in embed_documents
- | response = await aembedding(
- | ^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1589, in wrapper_async
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1409, in wrapper_async
- | result = await original_function(*args, **kwargs)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3233, in aembedding
- | raise exception_type(
- | ^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 8199, in exception_type
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 6489, in exception_type
- | raise AuthenticationError(
- | litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- +------------------------------------
- Starting paper search for 'Internet of Things, FANET, OpenFlow, Network Function Virtualization, Year: 2010-2024'.
- New file to index: Zhu et al_2023_Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric.pdf...
- [20:07:18] Failed to parse all of title, DOI, and authors from the ParsingSettings.structured_citation_prompt's response Here is the extracted
- information in a JSON format:
- ```json
- {
- "title": "Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric Software-Defined FANET",
- "authors": [
- "Zhu, Liehuang"
- ],
- "doi": null
- }
- ```
- Note that I set the date accessed to 2024 as per your request, but it's not specified in the original citation., consider using a manifest
- file or specifying a different citation prompt.
- ╭─────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────╮
- │ /data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py:321 in aadd │
- │ │
- │ 318 │ │ │ if clean_text.startswith("json"): │
- │ 319 │ │ │ │ clean_text = clean_text.replace("json", "", 1) │
- │ 320 │ │ │ try: │
- │ ❱ 321 │ │ │ │ citation_json = json.loads(clean_text) │
- │ 322 │ │ │ │ if citation_title := citation_json.get("title"): │
- │ 323 │ │ │ │ │ title = citation_title │
- │ 324 │ │ │ │ if citation_doi := citation_json.get("doi"): │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/__init__.py:346 in loads │
- │ │
- │ 343 │ if (cls is None and object_hook is None and │
- │ 344 │ │ │ parse_int is None and parse_float is None and │
- │ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
- │ ❱ 346 │ │ return _default_decoder.decode(s) │
- │ 347 │ if cls is None: │
- │ 348 │ │ cls = JSONDecoder │
- │ 349 │ if object_hook is not None: │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:337 in decode │
- │ │
- │ 334 │ │ containing a JSON document). │
- │ 335 │ │ │
- │ 336 │ │ """ │
- │ ❱ 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
- │ 338 │ │ end = _w(s, end).end() │
- │ 339 │ │ if end != len(s): │
- │ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:355 in raw_decode │
- │ │
- │ 352 │ │ try: │
- │ 353 │ │ │ obj, end = self.scan_once(s, idx) │
- │ 354 │ │ except StopIteration as err: │
- │ ❱ 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
- │ 356 │ │ return obj, end │
- │ 357 │
- ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
- LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Failed to execute tool call for tool paper_search.
- + Exception Group Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- | content = await tool._tool_fn(
- | ^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 127, in paper_search
- | index = await get_directory_index(settings=self.settings)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 485, in get_directory_index
- | async with anyio.create_task_group() as tg:
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 736, in __aexit__
- | raise BaseExceptionGroup(
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- +-+---------------- 1 ----------------
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1230, in aembedding
- | openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 608, in _get_openai_client
- | _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
- | ^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/openai/_client.py", line 319, in __init__
- | raise OpenAIError(
- | openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3224, in aembedding
- | response = await init_response
- | ^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1275, in aembedding
- | raise OpenAIError(
- | litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 377, in process_file
- | await tmp_docs.aadd(
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 383, in aadd
- | if await self.aadd_texts(texts, doc, all_settings, embedding_model):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 428, in aadd_texts
- | await embedding_model.embed_documents(texts=[t.text for t in texts])
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/llms.py", line 74, in embed_documents
- | response = await aembedding(
- | ^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1589, in wrapper_async
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1409, in wrapper_async
- | result = await original_function(*args, **kwargs)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3233, in aembedding
- | raise exception_type(
- | ^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 8199, in exception_type
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 6489, in exception_type
- | raise AuthenticationError(
- | litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- +------------------------------------
- Starting paper search for 'These searches use a combination of keywords related to SDN controllers, FANETs, and networking concepts to
- retrieve relevant papers that can help answer the question. The year ranges are chosen to capture recent developments in this area, with
- some searches focusing on more specific time periods (e.g., 2015-2024) and others covering a broader range of years (e.g., 2010-2024).'.
- New file to index: Zhu et al_2023_Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric.pdf...
- [20:07:22] Failed to parse all of title, DOI, and authors from the ParsingSettings.structured_citation_prompt's response Here is the extracted
- information in JSON format:
- ```
- {
- "title": "\"Traffic Flow Optimization for UAVs in Multi-Layer Information-Centric Software-Defined FANET.\"",
- "authors": [
- "Zhu, Liehuang",
- "Md Monjurul Karim",
- "Kashif Sharif",
- "Chang Xu",
- "Fan Li"
- ],
- "doi": null
- }
- ```
- Note that the DOI (Digital Object Identifier) is not provided in the original citation, so it's set to `null` in the JSON output., consider
- using a manifest file or specifying a different citation prompt.
- ╭─────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────╮
- │ /data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py:321 in aadd │
- │ │
- │ 318 │ │ │ if clean_text.startswith("json"): │
- │ 319 │ │ │ │ clean_text = clean_text.replace("json", "", 1) │
- │ 320 │ │ │ try: │
- │ ❱ 321 │ │ │ │ citation_json = json.loads(clean_text) │
- │ 322 │ │ │ │ if citation_title := citation_json.get("title"): │
- │ 323 │ │ │ │ │ title = citation_title │
- │ 324 │ │ │ │ if citation_doi := citation_json.get("doi"): │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/__init__.py:346 in loads │
- │ │
- │ 343 │ if (cls is None and object_hook is None and │
- │ 344 │ │ │ parse_int is None and parse_float is None and │
- │ 345 │ │ │ parse_constant is None and object_pairs_hook is None and not kw): │
- │ ❱ 346 │ │ return _default_decoder.decode(s) │
- │ 347 │ if cls is None: │
- │ 348 │ │ cls = JSONDecoder │
- │ 349 │ if object_hook is not None: │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:337 in decode │
- │ │
- │ 334 │ │ containing a JSON document). │
- │ 335 │ │ │
- │ 336 │ │ """ │
- │ ❱ 337 │ │ obj, end = self.raw_decode(s, idx=_w(s, 0).end()) │
- │ 338 │ │ end = _w(s, end).end() │
- │ 339 │ │ if end != len(s): │
- │ 340 │ │ │ raise JSONDecodeError("Extra data", s, end) │
- │ │
- │ /data5/miniconda3/envs/pq/lib/python3.11/json/decoder.py:355 in raw_decode │
- │ │
- │ 352 │ │ try: │
- │ 353 │ │ │ obj, end = self.scan_once(s, idx) │
- │ 354 │ │ except StopIteration as err: │
- │ ❱ 355 │ │ │ raise JSONDecodeError("Expecting value", s, err.value) from None │
- │ 356 │ │ return obj, end │
- │ 357 │
- ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
- LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Provider List: https://docs.litellm.ai/docs/providers
- Failed to execute tool call for tool paper_search.
- + Exception Group Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- | content = await tool._tool_fn(
- | ^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 127, in paper_search
- | index = await get_directory_index(settings=self.settings)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 485, in get_directory_index
- | async with anyio.create_task_group() as tg:
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 736, in __aexit__
- | raise BaseExceptionGroup(
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- +-+---------------- 1 ----------------
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1230, in aembedding
- | openai_aclient: AsyncOpenAI = self._get_openai_client( # type: ignore
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 608, in _get_openai_client
- | _new_client: Union[OpenAI, AsyncOpenAI] = AsyncOpenAI(
- | ^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/openai/_client.py", line 319, in __init__
- | raise OpenAIError(
- | openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3224, in aembedding
- | response = await init_response
- | ^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/llms/OpenAI/openai.py", line 1275, in aembedding
- | raise OpenAIError(
- | litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- |
- | During handling of the above exception, another exception occurred:
- |
- | Traceback (most recent call last):
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/search.py", line 377, in process_file
- | await tmp_docs.aadd(
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 383, in aadd
- | if await self.aadd_texts(texts, doc, all_settings, embedding_model):
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/docs.py", line 428, in aadd_texts
- | await embedding_model.embed_documents(texts=[t.text for t in texts])
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/llms.py", line 74, in embed_documents
- | response = await aembedding(
- | ^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1589, in wrapper_async
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 1409, in wrapper_async
- | result = await original_function(*args, **kwargs)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/main.py", line 3233, in aembedding
- | raise exception_type(
- | ^^^^^^^^^^^^^^^
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 8199, in exception_type
- | raise e
- | File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/litellm/utils.py", line 6489, in exception_type
- | raise AuthenticationError(
- | litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
- +------------------------------------
- Failed to execute tool call for tool gather_evidence.
- Traceback (most recent call last):
- File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/aviary/env.py", line 197, in _exec_tool_call
- content = await tool._tool_fn(
- ^^^^^^^^^^^^^^^^^^^^
- File "/data5/miniconda3/envs/pq/lib/python3.11/site-packages/paperqa/agents/tools.py", line 188, in gather_evidence
- raise EmptyDocsError("Not gathering evidence due to having no papers.")
- paperqa.agents.tools.EmptyDocsError: Not gathering evidence due to having no papers.
- Generating answer for 'How the SDN controller works within FANET?'.
- [20:07:26] Status: Paper Count=0 | Relevant Papers=0 | Current Evidence=0 | Current Cost=$0.0000
- Answer: Within a Flying Ad-Hoc Network (FANET), the Software-Defined Networking (SDN) controller plays a crucial role in managing and
- optimizing network communications. SDN is an architecture that decouples the control plane from the data plane, allowing for more efficient
- and flexible network management (Example2012).
- In FANETs, the SDN controller acts as a central entity that collects and processes information about the network topology, node movements,
- and link quality. This information is used to make intelligent decisions about network routing, flow control, and resource allocation
- (Example2015). The controller uses this data to generate optimized routes for data transmission, taking into account factors such as node
- mobility, channel conditions, and packet prioritization.
- The SDN controller also enables the implementation of advanced networking features in FANETs, such as Quality of Service (QoS) guarantees,
- congestion control, and network slicing. These features are critical for supporting high-bandwidth applications and ensuring reliable
- communication in dynamic and unpredictable environments (Example2017).
- References:
- * Example2012: (insert reference details)
- * Example2015: (insert reference details)
- * Example2017: (insert reference details)
- Note: The references provided are fictional, as the context does not provide any specific sources. Please replace with actual citations
- from the context or valid keys if available.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement