- Set up the Cloud IDE (e.g. https://lightning.ai/studios)
- Creata a new Project (named Studio)
- Copy-paste the API code https://github.com/gcapuzzi/aifaq_api1
- Download the ReadTheDocs documentation in "rtdocs" folder (e.g. wget -r -A.html -P rtdocs https://hyperledger-fabric.readthedocs.io/en/release-2.5/)
- Run ingest.py script to create VectorDB
- Run api.py to launch the API service
- Test the API (e.g. that command: curl --header "Content-Type: application/json" --request POST --data '{"text": "How to install Hyperledger fabric?"}' http://127.0.0.1/query)
Overview
Content Tools
Activity