-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
64 lines (64 loc) · 2.47 KB
/
Copy pathpackage.json
File metadata and controls
64 lines (64 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "azure-commerce-documentation-agent-poc",
"version": "1.0.0",
"description": "Azure POC for Commerce Documentation RAG system",
"main": "index.js",
"type": "module",
"scripts": {
"create-indexes": "node src/azure/scripts/create-indexes.js",
"load-docs": "cd ../commerce-documentation-service && npm run load-docs",
"embed-docs": "node src/azure/scripts/embed-azure.js",
"query": "node src/azure/scripts/query-azure.js",
"quick-test": "node src/azure/scripts/quick-test.js",
"deploy": "./scripts/deploy-functions.sh",
"deploy-simple": "cd azure-functions && func azure functionapp publish commerce-docs-api",
"test-query": "node src/azure/scripts/query-azure.js \"How to create an event?\"",
"test-functions": "curl -X POST https://commerce-docs-api.azurewebsites.net/api/query -H \"Content-Type: application/json\" -d '{\"query\":\"test\",\"count\":3}'",
"test-all": "./scripts/test-all.sh",
"check-progress": "grep -E '(Processing category|Successfully embedded|Error)' embed-progress.log || echo 'No progress yet'",
"upload-docs": "./scripts/upload-docs-to-blob.sh",
"test": "jest --runInBand",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test:e2e": "jest e2e/ --verbose --runInBand",
"test:security": "jest security-test/ --verbose --runInBand",
"test:load": "export IMS_TOKEN=${IMS_TOKEN:-$(aio auth login --bare)} && mkdir -p load-test/results && for file in load-test/*.test.js; do [ -f \"$file\" ] && k6 run -e APIM_ENDPOINT=\"${APIM_ENDPOINT}\" -e IMS_TOKEN=\"${IMS_TOKEN}\" --out json=load-test/results/$(basename \"$file\" .test.js).json \"$file\"; done"
},
"keywords": [
"azure",
"commerce",
"documentation",
"rag",
"ai",
"search"
],
"author": "",
"license": "ISC",
"dependencies": {
"@azure/search-documents": "^12.0.0",
"@azure/storage-blob": "^12.29.1",
"@langchain/community": "^0.3.51",
"@langchain/core": "^0.3.71",
"@langchain/openai": "^0.3.0",
"@langchain/textsplitters": "^0.1.0",
"axios": "^1.7.0",
"dotenv": "^16.6.1",
"openai": "^6.8.1"
},
"devDependencies": {
"@azure/data-tables": "^13.2.2",
"@azure/functions": "^4.0.0",
"@eslint/js": "^9.15.0",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.2.2",
"@types/node": "^18.19.0",
"eslint": "^9.15.0",
"globals": "^15.12.0",
"jest": "^29.7.0",
"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
},
"engines": {
"node": ">=18.0.0"
}
}