Note: Ensure uv version is >= 0.4.27 Install uv
uv sync
- it installs the virtual env and dependencies- If you are using Windows, you may need to manually install cargo
- Activate virtual env
- Mac:
source .venv/bin/activate
- Windows:
.venv\Scripts\Activate
Note: After the initial setup, you need to activate the virtual environment each time you start a new terminal session
- Install pre-commit hooks
Set up pre-commit hooks:
pre-commit install
Under root folder, create .env
and put LLM configurations into it.
Note: for azure models, please add azure/
prefix.
AZURE_OPENAI_API_KEY=<API key>
AZURE_OPENAI_DEPLOYMENT=azure/gpt-4o
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=azure/text-embedding-3-small
AZURE_OPENAI_API_BASE=https://<domain name>.openai.azure.com
AZURE_OPENAI_API_VERSION=<version name>
Remove overrided model string:
pytest
Debug selected test:
For test cases marked with @pytest.mark.asyncio
, find the play icon left to it. Right click and choose Debug test
.
Mac: pytest tests/test_memory_module.py
Window: $env:PYTHONPATH = "$env:PYTHONPATH;."; pytest tests/test_memory_module.py
Please refer to src/README.md for more details.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
See CONTRIBUTING.md for more information.
This repo is licensed under the MIT License. It includes tools to use APIs provided by third parties. These APIs are provided under their own separate terms. See LICENSE.md for more information.
- OpenAI API. Use of the OpenAI API requires an API key, which can be obtained from OpenAI. By using this SDK, you agree to abide by the OpenAI API Terms of Use and Privacy Policy. You can find them at OpenAI Terms of Use
- Azure OpenAI Service. Use of the Azure OpenAI API requires an API key. By using this SDK, you agree to abide by the Azure OpenAI API terms. You can find them at Azure OPENAI TOS, and associated documentation at Azure Cognitive Services.
This repo's Code of Conduct file can be found at CODE_OF_CONDUCT.md.
Please see the SUPPORT.md file for information on how to get help with this project.
Please see the SECURITY.md file for information on reporting security vulnerabilities.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.