Team Akasuki from HUST - SoICT Hackathon 2024
Jupyter Notebook
3
10 commits
updated Jan 15, 2025
Kaggle Notebook: Kaggle
Notebook only can be found here: Notebook Only
For now, the Kaggle Notebook should contain all of needed components for implementation. A documentation could be provided in the future to make the most use of the project. Stay tuned!
🎯 Task: Retrieve relevant legal documents related to a query from a given corpus.
🤝 Team: Akasuki
Combine the power of two open-source Vietnamese language models:
bkai-foundation-models/vietnamese-bi-encoder (Bi-encoder) 🤖namdp-ptit/ViRanker (Cross-encoder) ⚙️📝 Preprocessing and Embedding:
bi-encoder to generate vector representations for queries and documents in the corpus and training data.
🔤➡️🔢🎯 Fine-tuning:
(query, document) pairs:
training data.training data and exhibiting low cosine similarity.
➕➖bi-encoder using MultipleNegativesRankingLoss.
🏋️♂️📊 Query Embedding:
bi-encoder to embed queries from the public test set.
🔤➡️🔢🧲 Candidate Retrieval:
cosine similarity between query vectors and document vectors in the corpus.🥇 Re-ranking:
cross-encoder (namdp-ptit/ViRanker) to re-evaluate and rank the 50 candidates.
🏆🏆 Results:
re-ranking step.
🔟| Role | Contributor(s) |
|---|---|
| 💻 Model Design | Phan Hoang Hai, Dang Phuong Nam |
| 🗄️ Implementation | Phan Hoang Hai |
We hope you enjoy! If you have any questions or feedback, don't hesitate to reach out! 😊
Team Akasuki from HUST - SoICT Hackathon 2024
Jupyter Notebook
3
10 commits
updated Jan 15, 2025
Kaggle Notebook: Kaggle
Notebook only can be found here: Notebook Only
For now, the Kaggle Notebook should contain all of needed components for implementation. A documentation could be provided in the future to make the most use of the project. Stay tuned!
🎯 Task: Retrieve relevant legal documents related to a query from a given corpus.
🤝 Team: Akasuki
Combine the power of two open-source Vietnamese language models:
bkai-foundation-models/vietnamese-bi-encoder (Bi-encoder) 🤖namdp-ptit/ViRanker (Cross-encoder) ⚙️📝 Preprocessing and Embedding:
bi-encoder to generate vector representations for queries and documents in the corpus and training data.
🔤➡️🔢🎯 Fine-tuning:
(query, document) pairs:
training data.training data and exhibiting low cosine similarity.
➕➖bi-encoder using MultipleNegativesRankingLoss.
🏋️♂️📊 Query Embedding:
bi-encoder to embed queries from the public test set.
🔤➡️🔢🧲 Candidate Retrieval:
cosine similarity between query vectors and document vectors in the corpus.🥇 Re-ranking:
cross-encoder (namdp-ptit/ViRanker) to re-evaluate and rank the 50 candidates.
🏆🏆 Results:
re-ranking step.
🔟| Role | Contributor(s) |
|---|---|
| 💻 Model Design | Phan Hoang Hai, Dang Phuong Nam |
| 🗄️ Implementation | Phan Hoang Hai |
We hope you enjoy! If you have any questions or feedback, don't hesitate to reach out! 😊