Skip to main content

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))

Release files for similix 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for similix 0.2
File Size Uploaded
similix-0.2.tar.gz 8.6 kB Details

Release files / similix-0.2.tar.gz

Download URL similix-0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
afac026f9c55b0df31bb184341a5365d0ac61300e7d38addc6e4471e2c081127
BLAKE2b-256 checksum
How to use checksums
42c1eba28c2b791aabe01e9cd0e67b91efe05aa6227fb664aea844a9cd1b99d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page