File tree 3 files changed +22
-10
lines changed
src/backend/fastapi_app/prompts 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,28 @@ jobs:
53
53
psql -d postgres -c "ALTER USER ${{ env.POSTGRES_USERNAME }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
54
54
psql -d postgres -c 'CREATE EXTENSION vector'
55
55
56
- - name : (Windows) Install pgvector using install-pgvector.bat
57
- if : matrix.os == 'windows-latest'
58
- shell : cmd
59
- run : .github\workflows\install-pgvector.bat
60
-
61
56
- name : (Windows) Start postgreSQL
62
57
if : matrix.os == 'windows-latest'
63
58
uses : ikalnytskyi/action-setup-postgres@v6
64
59
with :
65
60
username : ${{ env.POSTGRES_USERNAME }}
66
61
password : ${{ env.POSTGRES_PASSWORD }}
67
62
database : ${{ env.POSTGRES_DATABASE }}
63
+ steps :
64
+
65
+ - name : Install pgvector
66
+ if : matrix.os == 'windows-latest'
67
+ shell : cmd
68
+ run : |
69
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
70
+ cd %TEMP%
71
+ git clone --branch v0.7.4 https://github.com/pgvector/pgvector.git
72
+ cd pgvector
73
+ nmake /NOLOGO /F Makefile.win
74
+ nmake /NOLOGO /F Makefile.win install
75
+ sc config postgresql-x64-14 start=auto
76
+ net start postgresql-x64-14
77
+ "%PGBIN%/psql" -d postgres -c "CREATE EXTENSION vector"
68
78
69
79
- name : (Linux) Install pgvector and set password
70
80
if : matrix.os == 'ubuntu-latest'
Original file line number Diff line number Diff line change 1
- name : Evaluate RAG answer quality
1
+ name : Evaluate RAG answer flow
2
2
3
3
on :
4
4
issue_comment :
@@ -133,7 +133,7 @@ jobs:
133
133
134
134
- name : Evaluate local RAG flow
135
135
run : |
136
- python evals/evaluate.py --targeturl=http://127.0.0.1:8000/chat --numquestions=2 --resultsdir=results/pr${{ github.event.issue.number }}
136
+ python evals/evaluate.py --targeturl=http://127.0.0.1:8000/chat --numquestions=2 --resultsdir=evals/ results/pr${{ github.event.issue.number }}
137
137
138
138
- name : Upload server logs as build artifact
139
139
uses : actions/upload-artifact@v4
@@ -163,10 +163,12 @@ jobs:
163
163
uses : actions/github-script@v7
164
164
with :
165
165
script : |
166
- const { GITHUB_STEP_SUMMARY } = process.env;
166
+ const fs = require('fs');
167
+ const summaryPath = process.env.GITHUB_STEP_SUMMARY;
168
+ const summary = fs.readFileSync(summaryPath, 'utf8');
167
169
github.rest.issues.createComment({
168
170
issue_number: context.issue.number,
169
171
owner: context.repo.owner,
170
172
repo: context.repo.repo,
171
- body: GITHUB_STEP_SUMMARY
173
+ body: summary
172
174
})
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ You have access to an Azure PostgreSQL database with an items table that has col
3
3
Generate a search query based on the conversation and the new question.
4
4
If the question is not in English, translate the question to English before generating the search query.
5
5
If you cannot generate a search query, return the original user question.
6
- DO NOT return anything besides the query.
6
+ DO NOT return anything besides the query!
You can’t perform that action at this time.
0 commit comments