Skip to content

Commit 8b027a4

Browse files
authored
Merge pull request #7 from appwrite/fix-arm-build-and-api-key
2 parents 9cc69af + 77c66d8 commit 8b027a4

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: docker/build-push-action@v4
4343
with:
4444
context: .
45-
platforms: linux/amd64
45+
platforms: linux/amd64,linux/arm64
4646
push: true
4747
tags: ${{ steps.meta.outputs.tags }}
4848
labels: ${{ steps.meta.outputs.labels }}

embeddings.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const sources = globSync("docs/*.json").map((filename) => {
4040

4141
export const search_index = FaissStore.fromDocuments(
4242
await chunk_sources(sources),
43-
new OpenAIEmbeddings()
43+
new OpenAIEmbeddings({
44+
openAIApiKey: process.env._APP_ASSISTANT_OPENAI_API_KEY,
45+
})
4446
);
4547
export const getChain = (res) => {
4648
return loadQAStuffChain(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"body-parser": "^1.20.2",
1616
"cors": "^2.8.5",
1717
"express": "^4.18.2",
18-
"faiss-node": "^0.2.2",
18+
"faiss-node": "^0.3.0",
1919
"glob": "^10.3.1",
2020
"langchain": "^0.0.104",
2121
"nodemon": "^2.0.22",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)