Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: AI Gallery Standard Validation #88

Merged
merged 6 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
21 changes: 0 additions & 21 deletions .github/workflows/stale-bot.yml

This file was deleted.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ This application is made from multiple components:

We use the [HTTP protocol for AI chat apps](https://aka.ms/chatprotocol) to communicate between the web app and the API.

## Features

- **Serverless Architecture**: Utilizes Azure Functions and Azure Static Web Apps for a fully serverless deployment.
- **Retrieval-Augmented Generation (RAG)**: Combines the power of Azure AI Search and LangChain.js to provide relevant and accurate responses.
- **Scalable and Cost-Effective**: Leverages Azure's serverless offerings to provide a scalable and cost-effective solution.
- **Local Development**: Supports local development using Ollama for testing without any cloud costs.

## Get started

There are multiple ways to get started with this project.
Expand Down Expand Up @@ -218,6 +225,10 @@ You can find answers to frequently asked questions in the [FAQ](./docs/faq.md).

If you have any issue when running or deploying this sample, please check the [troubleshooting guide](./docs/troubleshooting.md). If you can't find a solution to your problem, please [open an issue](https://github.com/Azure-Samples/serverless-chat-langchainjs/issues) in this repository.

## Guidance

For more detailed guidance on how to use this sample, please refer to the [tutorial](./docs/tutorial/01-introduction.md).

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Expand Down
41 changes: 41 additions & 0 deletions azure-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: serverless-chat-langchainjs
metadata:
template: [email protected]

services:
webapp:
project: ./packages/webapp
dist: dist
language: ts
host: staticwebapp
hooks:
predeploy:
windows:
shell: pwsh
run: Export-ModuleMember -Variable API_URL && npm run build
posix:
shell: sh
run: export API_URL && npm run build

api:
project: ./packages/api
language: ts
host: function

hooks:
postprovision:
windows:
shell: pwsh
run: azd env get-values > packages/api/.env
posix:
shell: sh
run: azd env get-values > packages/api/.env
postup:
windows:
shell: pwsh
run: node scripts/upload-documents.js "$env:API_URL"
posix:
shell: sh
run: node scripts/upload-documents.js "$API_URL"