Skip to content

object 'query_openai_api' not found #90

Open
@riskcede

Description

@riskcede

Im trying to run the code from the chatbot in shiny video. It was an awesome presentation, thanks!

However, the code is a bit over my head, so im starting by simply trying to run the code. When I run the pdfchat app i get the following error: Caused by error in gpttools:::create_openai_embedding():
! object 'query_openai_api' not found

It seems to be caused by the add_embeddings function in the pdf-to-index script.

Can you please advise if its something im doing wrong. Thanks

Below is my session info:

R version 4.3.2 (2023-10-31)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS 15.1.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Africa/Johannesburg
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] waiter_0.2.5 gpttools_0.0.8.9016 pdftools_3.4.1 glue_1.8.0 purrr_1.0.2 httr2_1.0.6 htmltools_0.5.8.1
[8] bsicons_0.1.2 bslib_0.8.0 shiny_1.9.1

loaded via a namespace (and not attached):
[1] tidyr_1.3.1 rappdirs_0.3.3 sass_0.4.9 utf8_1.2.4 generics_0.1.3 stringi_1.8.4
[7] hms_1.1.3 digest_0.6.37 magrittr_2.0.3 timechange_0.3.0 fastmap_1.2.0 jsonlite_1.8.9
[13] promises_1.3.0 fansi_1.0.6 gptstudio_0.4.0.9009 jquerylib_0.1.4 cli_3.6.3 crayon_1.5.3
[19] rlang_1.1.4 tokenizers_0.3.0 bit64_4.5.2 commonmark_1.9.2 yaml_2.3.10 withr_3.0.2
[25] cachem_1.1.0 parallel_4.3.2 tools_4.3.2 tzdb_0.4.0 memoise_2.0.1 dplyr_1.1.4
[31] httpuv_1.6.15 vctrs_0.6.5 R6_2.5.1 mime_0.12 lubridate_1.9.3 lifecycle_1.0.4
[37] snakecase_0.11.1 stringr_1.5.1 htmlwidgets_1.6.4 fs_1.6.5 bit_4.5.0 vroom_1.6.5
[43] janitor_2.2.0 pkgconfig_2.0.3 pillar_1.9.0 later_1.3.2 rsconnect_1.3.2 Rcpp_1.0.13-1
[49] tibble_3.2.1 tidyselect_1.2.1 rstudioapi_0.17.1.9000 xtable_1.8-4 SnowballC_0.7.1 readr_2.1.5
[55] qpdf_1.3.4 compiler_4.3.2 askpass_1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions