https://github.com/lukehollis/ai-murder-mystery-hackathon
- Install the deps:
pip3 install -r requirements.txt
- Run the server:
uvicorn main:app --reload
- Call /query_llm
curl -X POST "http://localhost:8000/query_llm" \
-H "Content-Type: application/json" \
-d '{"question": "What incidents we have? Reason step by step"}'
- Call /stream_request
curl -X POST "http://localhost:8000/stream_request" \
-H "Content-Type: application/json" \
-d '{
"inputs": [{"role": "user", "content": "Who are you?"}],
"max_tokens": 800,
"stop": ["[INST", "[INST]", "[/INST]", "[/INST]"],
"model": "llama3-8b"
}'
- Call MoA:
curl -X POST "http://localhost:8000/moa_request" \
-H "Content-Type: application/json" \
-d '{"question": "What are some fun things to do in SF?"}'
- Call RAG stack /groq_query
curl -X POST "http://localhost:8000/groq_query" \
-H "Content-Type: application/json" \
-d '{
"prompt_text": "What are some fun things to do in SF?"
}'
- /llamaindex_query
curl -X POST "http://localhost:8000/llamaindex_query" \
-H "Content-Type: application/json"
- Call All at once:
curl -X POST "http://localhost:8000/combined" \
-H "Content-Type: application/json" \
-d '{
"inputs": [{"role": "user", "content": "Who are you?"}],
"max_tokens": 800,
"stop": ["[INST", "[INST]", "[/INST]", "[/INST]"],
"model": "llama3-8b"
}'
Friends Webhook:
curl -X POST "http://127.0.0.1:8000/api/multion_webhook" -H "Content-Type: application/json" -d '{
"url": "https://news.ycombinator.com/",
"command": "Find the top comment of the top post on Hackernews."
}'
Multion Webhook:
curl -X POST "http://127.0.0.1:8000/multion_webhook" -H "Content-Type: application/json" -d '{
"url": "https://github.com",
"command": "Show the contribution history screenshot of github user for last year. Provide details: how many repos contributed, what is primary language of use, how many github stars he get, what is his linkedin and twitter accounts, where he works and lives"
}'
curl -X POST "http://127.0.0.1:8000/webhook" -H "Content-Type: application/json" -d '{
"id": 1,
"createdAt": "2024-07-21T12:34:56",
"transcript": "transcript",
"structured": {
"title": "title",
"overview": "overview",
"emoji": "emoji",
"category": "category",
"actionItems": ["Action item 1", "Action item 2"]
},
"pluginsResponse": ["This is a plugin response item"],
"discarded": false
}'