File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ DB_PASSWORD=password
2121 GEMINI_API_KEY=<api key>
2222 ```
2323
24- ### Clean up pipenv
25-
26- - ` pipenv --rm `
27- - ` pipenv --clear `
28- - ` pipenv lock --clear --verbose `
29-
3024### Setup new uv
3125
3226```
@@ -38,16 +32,6 @@ $ uv venv
3832
3933- This project uses PostgreSQL database with SQLAlchemy ORM with marshmallow for object SerDes.
4034
41- ## Install python modules
42-
43- ```
44- $ uv pip install --python=/path/to/python
45- $ cd src
46- $ uv pip install --python=/path/to/python
47- $ cd test
48- $ uv pip install --python=/path/to/python
49- ```
50-
5135## Create Database
5236
5337- Firstly, create an empty database "library" in PostgreSQL
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def inject_now():
3838
3939@chat_api .get ("/" )
4040@chat_api .get ("/index" )
41+ @Authentication .auth_required ("chat.index" )
4142async def index () -> ResponseReturnValue :
4243 logging .info (f"\n === /chat/index ===" )
4344 greeting = None
@@ -144,6 +145,7 @@ async def ProcessReceipt(image):
144145 return await Respond ("chat.html" , title = "Welcome to LLM-RAG 💬" , error = "Invalid input!" )
145146
146147@chat_api .post ("/invoke" )
148+ @Authentication .auth_required ("chat.invoke" )
147149async def invoke ():
148150 """
149151 Invoke the agent with user input to retrieve a final response.
You can’t perform that action at this time.
0 commit comments