Skip to content
Discussion options

You must be logged in to vote

alright, I got it working. This is everything I had to add to my init.el to get be able to add pdf files directly to the context:

;; pfd-tools
(use-package pdf-tools
  :ensure t)
(require 'pdf-tools)
(pdf-tools-install :no-query)  ; Standard activation command
;(pdf-loader-install) ; On demand loading, leads to faster startup time
(require 'pdf-info)
(require 'pdf-util)

;; gptel
(use-package gptel
  :ensure t)
(require 'gptel)

;; Llama.cpp offers an OpenAI compatible API
;; configure my default gptel backend
(setq gptel-track-media 't) ; Ensure media mode is on
(setq
 gptel-model   'local-llama
 gptel-backend (gptel-make-openai "llama-cpp"          ;Any name
                   :stream t

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@bschwand
Comment options

@karthink
Comment options

@bschwand
Comment options

@bschwand
Comment options

Answer selected by bschwand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants