Skip to content

Commit 882102d

Browse files
committed
Get windows working again
1 parent b438b6d commit 882102d

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

.github/workflows/app-tests.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,28 @@ jobs:
5353
psql -d postgres -c "ALTER USER ${{ env.POSTGRES_USERNAME }} WITH PASSWORD '${{ env.POSTGRES_PASSWORD }}'"
5454
psql -d postgres -c 'CREATE EXTENSION vector'
5555
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-
6156
- name: (Windows) Start postgreSQL
6257
if: matrix.os == 'windows-latest'
6358
uses: ikalnytskyi/action-setup-postgres@v6
6459
with:
6560
username: ${{ env.POSTGRES_USERNAME }}
6661
password: ${{ env.POSTGRES_PASSWORD }}
6762
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"
6878
6979
- name: (Linux) Install pgvector and set password
7080
if: matrix.os == 'ubuntu-latest'

.github/workflows/evaluate.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Evaluate RAG answer quality
1+
name: Evaluate RAG answer flow
22

33
on:
44
issue_comment:
@@ -133,7 +133,7 @@ jobs:
133133
134134
- name: Evaluate local RAG flow
135135
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 }}
137137
138138
- name: Upload server logs as build artifact
139139
uses: actions/upload-artifact@v4
@@ -163,10 +163,12 @@ jobs:
163163
uses: actions/github-script@v7
164164
with:
165165
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');
167169
github.rest.issues.createComment({
168170
issue_number: context.issue.number,
169171
owner: context.repo.owner,
170172
repo: context.repo.repo,
171-
body: GITHUB_STEP_SUMMARY
173+
body: summary
172174
})

src/backend/fastapi_app/prompts/query.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ You have access to an Azure PostgreSQL database with an items table that has col
33
Generate a search query based on the conversation and the new question.
44
If the question is not in English, translate the question to English before generating the search query.
55
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!

0 commit comments

Comments
 (0)