{"id":21901339,"url":"https://github.com/patw/breadrank","last_synced_at":"2025-10-09T10:32:12.440Z","repository":{"id":231202329,"uuid":"781205667","full_name":"patw/BreadRank","owner":"patw","description":"A small reranker service using mixedbread.ai reranker model","archived":false,"fork":false,"pushed_at":"2024-04-03T00:53:03.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-28T15:13:01.692Z","etag":null,"topics":["mixedbread","rag","reranker"],"latest_commit_sha":null,"homepage":"","language":"Python","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/patw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-04-03T00:06:27.000Z","updated_at":"2024-10-17T09:20:51.000Z","dependencies_parsed_at":"2024-04-03T01:51:26.182Z","dependency_job_id":null,"html_url":"https://github.com/patw/BreadRank","commit_stats":null,"previous_names":["patw/breadrank"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FBreadRank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FBreadRank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FBreadRank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patw%2FBreadRank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patw","download_url":"https://codeload.github.com/patw/BreadRank/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235813529,"owners_count":19048987,"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":["mixedbread","rag","reranker"],"created_at":"2024-11-28T15:13:13.376Z","updated_at":"2025-10-09T10:32:12.107Z","avatar_url":"https://github.com/patw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BreadRank\n\nA small reranker API service powered by mixedbred.ai reranker model.  It's currently using the mxbai-rerank-xsmall-v1 model.\n\n## Local Installation\n\n```\npip install -r requirements.txt\n```\n\n## Local Running\n\n```\nuvicorn main:app --host 0.0.0.0 --port 3007\n```\n\n## Docker\n\n```\ndocker build -t breadrank .\ndocker run -d -p 3007:3007 breadrank\n```\n\n**Warning**: The first run will be VERY slow to load\n\nVisit `http://localhost:3007/docs` in a browser once it's loaded\n\nCall it in python like this:\n\n```\nimport requests\nimport json\n\n# Define the URL of your FastAPI endpoint\nurl = \"http://localhost:3007/rerank/\"\n\n# Define the data you want to send to the endpoint\nquery = \"Your query here\"\ndocuments = [\"Document 1\", \"Document 2\", \"Document 3\"]\ntop_k = 2\n\ndata = {\"query\": query, \"documents\": documents, \"top_k\": top_k}\n\n# Make the POST request\nresponse = requests.post(url, json=data)\n\n# Print the response\nif response.status_code == 200:\n    print(json.dumps(response.json(), indent=4))\nelse:\n    print(f\"Request failed with status code {response.status_code}\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw%2Fbreadrank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatw%2Fbreadrank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatw%2Fbreadrank/lists"}