Skip to content

Commit

Permalink
Merge pull request #7 from appwrite/fix-arm-build-and-api-key
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron authored Aug 20, 2023
2 parents 9cc69af + 77c66d8 commit 8b027a4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 3 additions & 1 deletion embeddings.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const sources = globSync("docs/*.json").map((filename) => {

export const search_index = FaissStore.fromDocuments(
await chunk_sources(sources),
new OpenAIEmbeddings()
new OpenAIEmbeddings({
openAIApiKey: process.env._APP_ASSISTANT_OPENAI_API_KEY,
})
);
export const getChain = (res) => {
return loadQAStuffChain(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"faiss-node": "^0.2.2",
"faiss-node": "^0.3.0",
"glob": "^10.3.1",
"langchain": "^0.0.104",
"nodemon": "^2.0.22",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b027a4

Please sign in to comment.