{"id":21301705,"url":"https://github.com/xei/telco_llm","last_synced_at":"2025-03-15T18:27:55.889Z","repository":{"id":259190541,"uuid":"876543360","full_name":"xei/telco_llm","owner":"xei","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-22T20:30:23.000Z","size":414,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T08:14:51.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T06:37:00.000Z","updated_at":"2024-10-22T20:30:26.000Z","dependencies_parsed_at":"2024-10-23T11:16:04.000Z","dependency_job_id":null,"html_url":"https://github.com/xei/telco_llm","commit_stats":null,"previous_names":["xei/telco_llm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xei%2Ftelco_llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xei%2Ftelco_llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xei%2Ftelco_llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xei%2Ftelco_llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xei","download_url":"https://codeload.github.com/xei/telco_llm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243773525,"owners_count":20345853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T15:50:26.186Z","updated_at":"2025-03-15T18:27:55.865Z","avatar_url":"https://github.com/xei.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telco LLM\n\n## Setup Weaviate as a Knowledge Base\n```bash\ndocker network create weaviate-net\ndocker run -d --name weaviate --network weaviate-net -p 8080:8080 -p 50051:50051 cr.weaviate.io/semitechnologies/weaviate:1.27.0\ndocker run -d --name weaviate-playground -p 3000:80 semitechnologies/weaviate-playground:latest\n```\n\n## Check Weaviate data\nVisit: http://${SERVICE_HOST}:3000/?weaviate_uri=http%3A%2F%2F${SERVICE_HOST}%3A8080%2Fv1%2Fgraphql\u0026graphiql\n\nRun the following GraphQL query:\n```bash\n{\n  Get {\n    Alarm {\n      _additional {\n        id  # Get the unique ID of each instance\n      }\n      content   # Assuming 'text' is the property for alarm messages\n      len       # Metadata property for the length of each message\n      remedy    # Metadata property for the remedy information\n    }\n  }\n}\n\n```\n\n## Build and Run using Docker\n```bash\ndocker build -t telco_llm .\ndocker run  --rm --name telco --network weaviate-net -p 5000:5000 -e FIREWORKS_API_KEY=xxxxxxxxx telco_llm:latest\n```\n\n## API Document\n+ https://${SERVICE_HOST}/docs\n\n## Health Check\n```bash\ncurl --location 'https://${SERVICE_HOST}/blueprint/healthz'\n```\n\n## Sample Request\n```bash\ncurl --location 'https://${SERVICE_HOST}/recommendation' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"customer_id\": \"42\",\n  \"order_time\": \"2023-05-07T18:00:58\",\n  \"customer_latitude\": 35.763358,\n  \"customer_longitude\": 51.411085\n}'\n```\n```bash\ncurl --location 'https://${SERVICE_HOST}/travel-time' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"source_latitude\": 35.763358,\n    \"source_longitude\": 51.411085,\n    \"destination_latitude\": 35.773358,\n    \"destination_longitude\": 51.311085\n}'\n```\n\n\n## Run on local system without Docker\n```bash\ngit clone https://github.com/xei/fastapi-blueprint.git\ncd astapi-blueprint\npython3 -m venv .venv\nsource .venv/bin/activate\npython3 -m pip install -r requirements.txt\nPYTHONPATH=PATH/TO/PROJ/app uvicorn main:app --reload\n```\n\n## Run on local system with Docker\n```\ndocker run $CONTAINER_REGISTRY_PATH/blueprint:latest\n```\n\n## Deploy new changes (It is automated in Gitlab CI)\n```bash\ndocker pull $CONTAINER_REGISTRY_PATH/blueprint:latest || true\ndocker build --cache-from $CONTAINER_REGISTRY_PATH/blueprint:latest -f Dockerfile -t $CONTAINER_REGISTRY_PATH/blueprint:latest .\ndocker push $CONTAINER_REGISTRY_PATH/blueprint:latest:latest\ndocker stack deploy -c docker-compose.yml --with-registry-auth blueprint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxei%2Ftelco_llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxei%2Ftelco_llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxei%2Ftelco_llm/lists"}