https://promptfoo.dev/ logo
docker server does not show evals
# ❓|questions
e
Hi all, I'm trying to setup the promptfoo docker container locally for my VSC project to visualise my evals , but it's not working, keep showing `waiting for eval data`: my
.promptfoo
folder is properly setup, and new evals are showing in
promptfoo.db
it is also properly mounted to the container at
/home/promptfoo/.promptfoo
as per the documentation Here is the docker-compose (I'm using a VSC dev container for my project):
Copy code
services:
  vetup-ai-devcontainer:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        PYTHON_VERSION: "3.10.13"
    container_name: vetup-ai-devcontainer
    volumes:
      - ..:/workspaces/vetup-ai:cached
      - eussam-aws-config-volume:/home/vscode/.aws
    command: sleep infinity

  promptfoo-server:
    image: ghcr.io/promptfoo/promptfoo:latest
    container_name: promptfoo-server
    volumes:
      - ../apps/rag-youtube-qa-api/eval/.promptfoo:/home/promptfoo/.promptfoo
    ports:
      - "3000:3000"


volumes:
  eussam-aws-config-volume:
    name: eussam-aws-config-volume
Can you tell me what I'm missing ? Thank you in advance. https://cdn.discordapp.com/attachments/1322886067069915208/1322886067505991770/image.png?ex=67728128&is=67712fa8&hm=27c29003d82daece4855326313a1dfc76b16a8529a7a280eb65f4a7a6a5ea4cc& https://cdn.discordapp.com/attachments/1322886067069915208/1322886067761709137/image.png?ex=67728128&is=67712fa8&hm=b9662326c821373f0e742a8a289d6f957bde739f1e8b219866a1cab3803373b4&
i
👀 what does the network tab/javascript console look like when you try to load the evals page?
e
actually I hadn't realised I had to use the
--share
option of
promptfoo eval
when using the docker server, now everything is ok. my initial goal was to persist my evals and version them along with my project. So in the end I used a custom path in my repo for the rep
.promptfoo
(
export PROMPTFOO_CONFIG_DIR=./eval/.promptfoo
), and commit
promptfoo.db
and use
promptfoo view
for visualisation and comparison. For now it seems to fulfil my needs Thank you