Spaces:
Runtime error
Runtime error
Commit ·
d7434b7
1
Parent(s): f69a6fa
Final changes in local
Browse filesFiles changed (8)
1 unmodified line23451 unmodified line.venv.envdata.gradio1 unmodified line234561 unmodified line.venv.envdata.gradiosupabase_dump.sql
12 unmodified lines13141516171812 unmodified lines"pandas>=2.3.3","psycopg2-binary>=2.9.11","python-dotenv>=1.2.1","requests>=2.32.5","sentence-transformers>=5.2.0","sqlmodel>=0.0.37",12 unmodified lines1314151617181912 unmodified lines"pandas>=2.3.3","psycopg2-binary>=2.9.11","python-dotenv>=1.2.1","qdrant-client>=1.17.0","requests>=2.32.5","sentence-transformers>=5.2.0","sqlmodel>=0.0.37",
20 unmodified lines2122232425262751 unmodified lines7980818283848520 unmodified linesReplaces lazy global initialization with app state."""print("Initializing Anime RAG Pipeline...")app.state.pipeline = AnimeRAGPipeline(retriever_k=10)yieldprint("Shutting down... Cleaning up resources.")51 unmodified linesif request.genre_filter:filters["genre_filter"] = request.genre_filterif request.anime_type:filters["anime_type"] = request.anime_type20 unmodified lines2122232425262751 unmodified lines7980818283848520 unmodified linesReplaces lazy global initialization with app state."""print("Initializing Anime RAG Pipeline...")app.state.pipeline = AnimeRAGPipeline(retriever_k=50)yieldprint("Shutting down... Cleaning up resources.")51 unmodified linesif request.genre_filter:filters["genre_filter"] = request.genre_filterif request.anime_type:filters["anime_type"] = request.anime_type
86 unmodified lines878889909192936 unmodified lines10010110210310410510686 unmodified linesreranker_service = AnimeReranker()retriever = AnimeRetriever()user_query = "Modern Romantic Comedy Anime"vector_db_results = retriever.search(query=user_query,n_results=50)6 unmodified lines# 2. Call the `.process()` method during runtime (e.g., inside an API endpoint)df = reranker_service.process(user_query,vector_db_results,top_k=10)df_dict_list = df.to_dict(orient="records") if not df.empty else []print("\nAFTER RERANKING")print("--------------------------------------------------")86 unmodified lines878889909192936 unmodified lines10010110210310410510686 unmodified linesreranker_service = AnimeReranker()retriever = AnimeRetriever()user_query = "Racing Anime"vector_db_results = retriever.search(query=user_query,n_results=50)6 unmodified lines# 2. Call the `.process()` method during runtime (e.g., inside an API endpoint)df = reranker_service.process(user_query,vector_db_results,top_k=15)df_dict_list = df.to_dict(orient="records") if not df.empty else []print("\nAFTER RERANKING")print("--------------------------------------------------")
75 unmodified lines767778798081821 unmodified line8485868788899020 unmodified lines11111211311411511611711811912012112212312412519 unmodified lines14514614714814915015121 unmodified lines1731741751761771781799 unmodified lines1891901911921931941951961971981992002012022032042052062072082092102112122132142152164 unmodified lines2212222232242252262272282292302312322332 unmodified lines23623723823975 unmodified linesreturn {"query": user_query,"recommendations": "Sorry, I'm having trouble processing your query. Can you be more clear and try again?","retrieved_count": 0,"retrieved_animes": []}if not initial_response.tool_calls:1 unmodified line"[2/5] No search needed. Returning conversational response.")return {"query": user_query,"retrieved_count": 0,"recommendations": initial_response.content,"retrieved_animes": []}20 unmodified linesreranked_df = self.reranker.process(user_query=optimized_query,retrieved_anime=retrieved_animes,top_k=15)top_animes_list = reranked_df.to_dict(orient="records") if not reranked_df.empty else []print("FIRST IN TOP ANIMES LIST AFTER RERANKING \n",top_animes_list[0])print("SECOND IN TOP ANIMES LIST AFTER RERANKING \n",top_animes_list[1])print(f"After reranking, fetched {len(top_animes_list)} top animes....")19 unmodified linesreturn {"query": user_query,"retrieved_count": len(retrieved_animes),"reranked_count": len(top_animes_list),"recommendations": recommendations,"retrieved_animes": top_animes_list21 unmodified linestest_queries = ["Anime similar to Death Note but lighter in tone","A really obscure and weird sci-fi mecha from the 90s", # Test the hidden gem / passion rate"A generic isekai with an overpowered main character" # Test the mainstream math]9 unmodified lines# We need to reach into the pipeline's retriever to see what the raw ChromaDB output was,# since the pipeline only returns the *reranked* list.# Note: If the LLM chose NOT to search, result["retrieved_count"] will be 0.diagnostic_data = {"1_initial_user_query": result["query"],"2_llm_routing_decision": "Searched" if result["retrieved_count"] > 0 else "Chatted","3_total_retrieved_from_chroma": result["retrieved_count"],"4_total_survived_reranking": result.get("reranked_count", 0),"5_final_llm_recommendation_text": result["recommendations"],# The "Before" state: We want to see what ChromaDB found just using embeddings"6_raw_chroma_results_before_reranking": [],# The "After" state: We want to see the exact math scores for the top survivors"7_reranked_results_with_math": []}# If the LLM actually performed a search, let's build the detailed listsif result["retrieved_count"] > 0:# We need to get the optimized query that the LLM generated for the tool call.# (In a real app, you might want to return `optimized_query` in the `result` dict from `recommend()`)# For this test, we will just assume it's the original query if we can't easily grab it here.# Let's format the top 15 Reranked items with all their math exposedfor rank, anime in enumerate(result["retrieved_animes"]):diagnostic_data["7_reranked_results_with_math"].append({4 unmodified lines"quality_score_raw": round(anime.get("raw_quality_score", 0), 4),"bayesian_average": round(anime.get("bayesian_score", 0), 4),"passion_rate": round(anime.get("passion_rate", 0), 5),"chroma_distance": round(1 - anime.get("relevance_score", 1), 4) # Showing original vector distance})# 3. Save the diagnostic reportsafe_filename = f"diagnostic_{query[:20].replace(' ', '_').lower()}.json"filepath = os.path.join("data", safe_filename)with open(filepath, "w") as f:json.dump(diagnostic_data, f, indent=2)2 unmodified lines# Pause to respect Groq API rate limitsimport timetime.sleep(3)75 unmodified lines76777879808182831 unmodified line858687888990919220 unmodified lines11311411511611711811912012112212312419 unmodified lines14414514614714814915021 unmodified lines1721731741751761771781799 unmodified lines1891901911921931941951961971981992002012022032042052062072082092102112122132142152164 unmodified lines2212222232242252262272282292302312322332342 unmodified lines23723823924075 unmodified linesreturn {"query": user_query,"recommendations": "Sorry, I'm having trouble processing your query. Can you be more clear and try again?","retrieved_count_from_DB": 0,"reranked_count": 0,"retrieved_animes": []}if not initial_response.tool_calls:1 unmodified line"[2/5] No search needed. Returning conversational response.")return {"query": user_query,"retrieved_count_from_DB": 0,"reranked_count": 0,"recommendations": initial_response.content,"retrieved_animes": []}20 unmodified linesreranked_df = self.reranker.process(user_query=optimized_query,retrieved_anime=retrieved_animes,top_k=10)top_animes_list = reranked_df.to_dict(orient="records") if not reranked_df.empty else []print(f"After reranking, fetched {len(top_animes_list)} top animes....")19 unmodified linesreturn {"query": user_query,"retrieved_count_from_DB": len(retrieved_animes),"reranked_count": len(top_animes_list),"recommendations": recommendations,"retrieved_animes": top_animes_list21 unmodified linestest_queries = ["Anime similar to Death Note but lighter in tone",# Test the hidden gem / passion rate"A really obscure and weird sci-fi mecha from the 90s","A generic isekai with an overpowered main character" # Test the mainstream math]9 unmodified lines# We need to reach into the pipeline's retriever to see what the raw ChromaDB output was,# since the pipeline only returns the *reranked* list.# Note: If the LLM chose NOT to search, result["retrieved_count"] will be 0.diagnostic_data = {"1_initial_user_query": result["query"],"2_llm_routing_decision": "Searched" if result["retrieved_count"] > 0 else "Chatted","3_total_retrieved_from_chroma": result["retrieved_count"],"4_total_survived_reranking": result.get("reranked_count", 0),"5_final_llm_recommendation_text": result["recommendations"],# The "Before" state: We want to see what ChromaDB found just using embeddings"6_raw_chroma_results_before_reranking": [],# The "After" state: We want to see the exact math scores for the top survivors"7_reranked_results_with_math": []}# If the LLM actually performed a search, let's build the detailed listsif result["retrieved_count"] > 0:# We need to get the optimized query that the LLM generated for the tool call.# (In a real app, you might want to return `optimized_query` in the `result` dict from `recommend()`)# For this test, we will just assume it's the original query if we can't easily grab it here.# Let's format the top 15 Reranked items with all their math exposedfor rank, anime in enumerate(result["retrieved_animes"]):diagnostic_data["7_reranked_results_with_math"].append({4 unmodified lines"quality_score_raw": round(anime.get("raw_quality_score", 0), 4),"bayesian_average": round(anime.get("bayesian_score", 0), 4),"passion_rate": round(anime.get("passion_rate", 0), 5),# Showing original vector distance"chroma_distance": round(1 - anime.get("relevance_score", 1), 4)})# 3. Save the diagnostic reportsafe_filename = f"diagnostic_{query[:20].replace(' ', '_').lower()}.json"filepath = os.path.join("data", safe_filename)with open(filepath, "w") as f:json.dump(diagnostic_data, f, indent=2)2 unmodified lines# Pause to respect Groq API rate limitsimport timetime.sleep(3)
130 unmodified lines131132133134135136137138139130 unmodified lines"favorites": pg_anime.favorites,"images": pg_anime.images,"synopsis": pg_anime.synopsis,"searchable_text": pg_anime.searchable_text,# Clean rounded score"relevance_score": round(1 - distance, 3),}anime_list.append(anime_info)130 unmodified lines131132133134135136137130 unmodified lines"favorites": pg_anime.favorites,"images": pg_anime.images,"synopsis": pg_anime.synopsis,"searchable_text": pg_anime.searchable_text}anime_list.append(anime_info)
90 unmodified lines91929394959697989990 unmodified lineskind = anime.get("type") or ""genres = (anime.get("genres") or [])[:2]url = anime.get("mal_url", "#")raw_score = anime.get("relevance_score", 0)normalized_score = (raw_score + 1) / 2rel_pct = int(normalized_score * 100)genre_str = " · ".join(genres)return (90 unmodified lines919293949596979890 unmodified lineskind = anime.get("type") or ""genres = (anime.get("genres") or [])[:2]url = anime.get("mal_url", "#")raw_score = anime.get("final_hybrid_score", 0)rel_pct = max(5, int(raw_score * 100))genre_str = " · ".join(genres)return (
34 unmodified lines35363738394021 unmodified lines626364656667956 unmodified lines10241025102610271028102916 unmodified lines10461047104810491050105151 unmodified lines11031104110511061107110813 unmodified lines1122112311241125112611271283 unmodified lines241124122413241424152416455 unmodified lines28722873287428752876287791 unmodified lines29692970297129722973297434 unmodified lines{ name = "pandas" },{ name = "psycopg2-binary" },{ name = "python-dotenv" },{ name = "requests" },{ name = "sentence-transformers" },{ name = "sqlmodel" },21 unmodified lines{ name = "pandas", specifier = ">=2.3.3" },{ name = "psycopg2-binary", specifier = ">=2.9.11" },{ name = "python-dotenv", specifier = ">=1.2.1" },{ name = "requests", specifier = ">=2.32.5" },{ name = "sentence-transformers", specifier = ">=5.2.0" },{ name = "sqlmodel", specifier = ">=0.0.37" },956 unmodified lines{ url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },][[package]]name = "hf-xet"version = "1.2.0"16 unmodified lines{ url = "https://files.pythonhosted.org/packages/cb/44/870d44b30e1dcfb6a65932e3e1506c103a8a5aea9103c337e7a53180322c/hf_xet-1.2.0-cp37-abi3-win_amd64.whl", hash = "sha256:e6584a52253f72c9f52f9e549d5895ca7a471608495c4ecaa6cc73dba2b24d69", size = 2905735, upload-time = "2025-10-24T19:04:35.928Z" },][[package]]name = "httpcore"version = "1.0.9"51 unmodified lines{ url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },][[package]]name = "huggingface-hub"version = "0.36.0"13 unmodified lines{ url = "https://files.pythonhosted.org/packages/cb/bd/1a875e0d592d447cbc02805fd3fe0f497714d6a2583f59d14fa9ebad96eb/huggingface_hub-0.36.0-py3-none-any.whl", hash = "sha256:7bcc9ad17d5b3f07b57c78e79d527102d08313caa278a641993acddcb894548d", size = 566094, upload-time = "2025-10-23T12:11:59.557Z" },][[package]]name = "idna"version = "3.11"1283 unmodified lines{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },][[package]]name = "posthog"version = "5.4.0"455 unmodified lines{ url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" },][[package]]name = "pywinpty"version = "3.0.2"91 unmodified lines{ url = "https://files.pythonhosted.org/packages/01/1b/5dbe84eefc86f48473947e2f41711aded97eecef1231f4558f1f02713c12/pyzmq-27.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c9f7f6e13dff2e44a6afeaf2cf54cee5929ad64afaf4d40b50f93c58fc687355", size = 544862, upload-time = "2025-09-08T23:09:56.509Z" },][[package]]name = "referencing"version = "0.37.0"34 unmodified lines3536373839404121 unmodified lines63646566676869956 unmodified lines102610271028102910301031103210331034103510361037103810391040104110421043104416 unmodified lines10611062106310641065106610671068106910701071107210731074107551 unmodified lines1127112811291130113111321133113411351136113713 unmodified lines1151115211531154115511561157115811591160116111621163116411651283 unmodified lines244924502451245224532454245524562457245824592460246124622463246424652466455 unmodified lines292229232924292529262927292829292930293129322933293429352936293729382939294029412942294391 unmodified lines30353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305834 unmodified lines{ name = "pandas" },{ name = "psycopg2-binary" },{ name = "python-dotenv" },{ name = "qdrant-client" },{ name = "requests" },{ name = "sentence-transformers" },{ name = "sqlmodel" },21 unmodified lines{ name = "pandas", specifier = ">=2.3.3" },{ name = "psycopg2-binary", specifier = ">=2.9.11" },{ name = "python-dotenv", specifier = ">=1.2.1" },{ name = "qdrant-client", specifier = ">=1.17.0" },{ name = "requests", specifier = ">=2.32.5" },{ name = "sentence-transformers", specifier = ">=5.2.0" },{ name = "sqlmodel", specifier = ">=0.0.37" },956 unmodified lines{ url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },][[package]]name = "h2"version = "4.3.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "hpack" },{ name = "hyperframe" },]sdist = { url = "https://files.pythonhosted.org/packages/1d/17/afa56379f94ad0fe8defd37d6eb3f89a25404ffc71d4d848893d270325fc/h2-4.3.0.tar.gz", hash = "sha256:6c59efe4323fa18b47a632221a1888bd7fde6249819beda254aeca909f221bf1", size = 2152026, upload-time = "2025-08-23T18:12:19.778Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/69/b2/119f6e6dcbd96f9069ce9a2665e0146588dc9f88f29549711853645e736a/h2-4.3.0-py3-none-any.whl", hash = "sha256:c438f029a25f7945c69e0ccf0fb951dc3f73a5f6412981daee861431b70e2bdd", size = 61779, upload-time = "2025-08-23T18:12:17.779Z" },][[package]]name = "hf-xet"version = "1.2.0"16 unmodified lines{ url = "https://files.pythonhosted.org/packages/cb/44/870d44b30e1dcfb6a65932e3e1506c103a8a5aea9103c337e7a53180322c/hf_xet-1.2.0-cp37-abi3-win_amd64.whl", hash = "sha256:e6584a52253f72c9f52f9e549d5895ca7a471608495c4ecaa6cc73dba2b24d69", size = 2905735, upload-time = "2025-10-24T19:04:35.928Z" },][[package]]name = "hpack"version = "4.1.0"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/2c/48/71de9ed269fdae9c8057e5a4c0aa7402e8bb16f2c6e90b3aa53327b113f8/hpack-4.1.0.tar.gz", hash = "sha256:ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca", size = 51276, upload-time = "2025-01-22T21:44:58.347Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/07/c6/80c95b1b2b94682a72cbdbfb85b81ae2daffa4291fbfa1b1464502ede10d/hpack-4.1.0-py3-none-any.whl", hash = "sha256:157ac792668d995c657d93111f46b4535ed114f0c9c8d672271bbec7eae1b496", size = 34357, upload-time = "2025-01-22T21:44:56.92Z" },][[package]]name = "httpcore"version = "1.0.9"51 unmodified lines{ url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },][package.optional-dependencies]http2 = [{ name = "h2" },][[package]]name = "huggingface-hub"version = "0.36.0"13 unmodified lines{ url = "https://files.pythonhosted.org/packages/cb/bd/1a875e0d592d447cbc02805fd3fe0f497714d6a2583f59d14fa9ebad96eb/huggingface_hub-0.36.0-py3-none-any.whl", hash = "sha256:7bcc9ad17d5b3f07b57c78e79d527102d08313caa278a641993acddcb894548d", size = 566094, upload-time = "2025-10-23T12:11:59.557Z" },][[package]]name = "hyperframe"version = "6.1.0"source = { registry = "https://pypi.org/simple" }sdist = { url = "https://files.pythonhosted.org/packages/02/e7/94f8232d4a74cc99514c13a9f995811485a6903d48e5d952771ef6322e30/hyperframe-6.1.0.tar.gz", hash = "sha256:f630908a00854a7adeabd6382b43923a4c4cd4b821fcb527e6ab9e15382a3b08", size = 26566, upload-time = "2025-01-22T21:41:49.302Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/48/30/47d0bf6072f7252e6521f3447ccfa40b421b6824517f82854703d0f5a98b/hyperframe-6.1.0-py3-none-any.whl", hash = "sha256:b03380493a519fce58ea5af42e4a42317bf9bd425596f7a0835ffce80f1a42e5", size = 13007, upload-time = "2025-01-22T21:41:47.295Z" },][[package]]name = "idna"version = "3.11"1283 unmodified lines{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },][[package]]name = "portalocker"version = "3.2.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "pywin32", marker = "sys_platform == 'win32'" },]sdist = { url = "https://files.pythonhosted.org/packages/5e/77/65b857a69ed876e1951e88aaba60f5ce6120c33703f7cb61a3c894b8c1b6/portalocker-3.2.0.tar.gz", hash = "sha256:1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac", size = 95644, upload-time = "2025-06-14T13:20:40.03Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/4b/a6/38c8e2f318bf67d338f4d629e93b0b4b9af331f455f0390ea8ce4a099b26/portalocker-3.2.0-py3-none-any.whl", hash = "sha256:3cdc5f565312224bc570c49337bd21428bba0ef363bbcf58b9ef4a9f11779968", size = 22424, upload-time = "2025-06-14T13:20:38.083Z" },][[package]]name = "posthog"version = "5.4.0"455 unmodified lines{ url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" },][[package]]name = "pywin32"version = "311"source = { registry = "https://pypi.org/simple" }wheels = [{ url = "https://files.pythonhosted.org/packages/7c/af/449a6a91e5d6db51420875c54f6aff7c97a86a3b13a0b4f1a5c13b988de3/pywin32-311-cp311-cp311-win32.whl", hash = "sha256:184eb5e436dea364dcd3d2316d577d625c0351bf237c4e9a5fabbcfa5a58b151", size = 8697031, upload-time = "2025-07-14T20:13:13.266Z" },{ url = "https://files.pythonhosted.org/packages/51/8f/9bb81dd5bb77d22243d33c8397f09377056d5c687aa6d4042bea7fbf8364/pywin32-311-cp311-cp311-win_amd64.whl", hash = "sha256:3ce80b34b22b17ccbd937a6e78e7225d80c52f5ab9940fe0506a1a16f3dab503", size = 9508308, upload-time = "2025-07-14T20:13:15.147Z" },{ url = "https://files.pythonhosted.org/packages/44/7b/9c2ab54f74a138c491aba1b1cd0795ba61f144c711daea84a88b63dc0f6c/pywin32-311-cp311-cp311-win_arm64.whl", hash = "sha256:a733f1388e1a842abb67ffa8e7aad0e70ac519e09b0f6a784e65a136ec7cefd2", size = 8703930, upload-time = "2025-07-14T20:13:16.945Z" },{ url = "https://files.pythonhosted.org/packages/e7/ab/01ea1943d4eba0f850c3c61e78e8dd59757ff815ff3ccd0a84de5f541f42/pywin32-311-cp312-cp312-win32.whl", hash = "sha256:750ec6e621af2b948540032557b10a2d43b0cee2ae9758c54154d711cc852d31", size = 8706543, upload-time = "2025-07-14T20:13:20.765Z" },{ url = "https://files.pythonhosted.org/packages/d1/a8/a0e8d07d4d051ec7502cd58b291ec98dcc0c3fff027caad0470b72cfcc2f/pywin32-311-cp312-cp312-win_amd64.whl", hash = "sha256:b8c095edad5c211ff31c05223658e71bf7116daa0ecf3ad85f3201ea3190d067", size = 9495040, upload-time = "2025-07-14T20:13:22.543Z" },{ url = "https://files.pythonhosted.org/packages/ba/3a/2ae996277b4b50f17d61f0603efd8253cb2d79cc7ae159468007b586396d/pywin32-311-cp312-cp312-win_arm64.whl", hash = "sha256:e286f46a9a39c4a18b319c28f59b61de793654af2f395c102b4f819e584b5852", size = 8710102, upload-time = "2025-07-14T20:13:24.682Z" },{ url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" },{ url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" },{ url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" },][[package]]name = "pywinpty"version = "3.0.2"91 unmodified lines{ url = "https://files.pythonhosted.org/packages/01/1b/5dbe84eefc86f48473947e2f41711aded97eecef1231f4558f1f02713c12/pyzmq-27.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c9f7f6e13dff2e44a6afeaf2cf54cee5929ad64afaf4d40b50f93c58fc687355", size = 544862, upload-time = "2025-09-08T23:09:56.509Z" },][[package]]name = "qdrant-client"version = "1.17.0"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "grpcio" },{ name = "httpx", extra = ["http2"] },{ name = "numpy" },{ name = "portalocker" },{ name = "protobuf" },{ name = "pydantic" },{ name = "urllib3" },]sdist = { url = "https://files.pythonhosted.org/packages/20/fb/c9c4cecf6e7fdff2dbaeee0de40e93fe495379eb5fe2775b184ea45315da/qdrant_client-1.17.0.tar.gz", hash = "sha256:47eb033edb9be33a4babb4d87b0d8d5eaf03d52112dca0218db7f2030bf41ba9", size = 344839, upload-time = "2026-02-19T16:03:17.069Z" }wheels = [{ url = "https://files.pythonhosted.org/packages/c1/15/dfadbc9d8c9872e8ac45fa96f5099bb2855f23426bfea1bbcdc85e64ef6e/qdrant_client-1.17.0-py3-none-any.whl", hash = "sha256:f5b452c68c42b3580d3d266446fb00d3c6e3aae89c916e16585b3c704e108438", size = 390381, upload-time = "2026-02-19T16:03:15.486Z" },][[package]]name = "referencing"version = "0.37.0"
.gitignore+2-1
pyproject.toml+1
src/api/main.py+2-2
src/llm/anime_reranker.py+2-2
src/retrieval/rag_pipeline.py+18-17
src/retrieval/vector_search.py+1-3
ui/gradio_app.py+2-3
uv.lock+84