ScottLogic / prompt-injection

Application which investigates defensive measures against prompt injection attacks on an LLM, with a focus on the exposure of external tools.
MIT License
15 stars 10 forks source link

810: Session vs non-session routes #811

Closed chriswilty closed 7 months ago

chriswilty commented 7 months ago

Description

We need to split API routes into session and non-session endpoints, so that we are not generating or noop-updating the session when we don't need to. This is particularly important for cloud deployment, where our load-balancer hits our healthcheck every 30secs, creating a new session every time 😱

Resolves #810

Checklist

Have you done the following?

chriswilty commented 7 months ago

@pmarsh-scottlogic Ah yes sorry, you'll need to replace your backend .env with the new .env.example as I added the cors origin into there. I must remember to tell everyone else to do that once this is merged 😅

chriswilty commented 7 months ago

Note to self: will pull out the integration test changes plus the debugging log line in langchain.ts, cos it just complicates things elsewhere.