No project description provided
Project description
Similix
System Similarity, a cutting-edge solution for identifying article similarities with speed, security, and 85% accuracy. The specialized Article Recommendation submodule leverages OpenAI modules, numpy, and pandas for vector generation, data cleaning, and similarity calculations.
Features
- Fast & Efficient: Quick results without compromising accuracy.
- Secure: Robust security measures for data protection.
- High Accuracy: 99% accuracy in article recommendations.
Overview
Focused on suggesting articles similar to a target article, the submodule optimizes vector generation, data cleaning, and similarity calculations.
Workflow
Vector Generation:
-
OpenAI module generates a vector for the target article. Cached for future optimization.
-
Data Cleaning: Numpy and pandas clean CSV data, including titles and descriptions.
-
Vectorization: Converts article descriptions into numerical vectors.
-
Similarity Calculation: System computes similarity between target and other article vectors.
-
Recommendation: Recommends articles with the highest similarity.
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
OPENAI_API_KEY Just for testing purpose you can contact me or you can get it from oepnai which is you have to paid for it.
Installation
- Make sure in your dataset contain title and description as the fields requirement
We assume that you have Python installed and have set up the entire environment
pip install similix
Usage
- Make sure your dataset contain 'title' and 'description' as the fields requirement
from similix.article_recommender import ArticleRecommender
import os
os.environ['OPENAI_API_KEY'] = 'OPENAI_API_KEY'
ac = ArticleRecommender(dataset_path='cleaned_dataset.csv', embedding_model='text-embedding-3-large')
limit_articles = 2
article_target = 'Twenty six women and five children were murdered by current'
print(ac.recommend_articles(article_target, limitArticles))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file similix-0.2.tar.gz.
File metadata
- Download URL: similix-0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afac026f9c55b0df31bb184341a5365d0ac61300e7d38addc6e4471e2c081127
|
|
| MD5 |
ca06334e042024de82316ddb03822899
|
|
| BLAKE2b-256 |
42c1eba28c2b791aabe01e9cd0e67b91efe05aa6227fb664aea844a9cd1b99d5
|