muzlin


Namemuzlin JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryMuzlin: a filtering toolset for semantic machine learning
upload_time2024-11-17 18:01:07
maintainerDaniel Kulik
docs_urlNone
authorDaniel Kulik
requires_python>=3.8
licenseMIT License Copyright (c) 2024 Daniel Kulik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords rag outlier-detection filtering retrieval semantic ml llm nlp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Logo.png
   :target: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Logo.png
   :alt: Muzlin

*When a filter cloth 🏳️ is needed rather than a simple RAG 🏴‍☠*

**Deployment, Stats, & License**

|badge_pypi| |badge_stars| |badge_downloads| |badge_versions|
|badge_licence|

.. |badge_pypi| image:: https://img.shields.io/pypi/v/muzlin.svg?color=brightgreen&logo=pypi&logoColor=white
   :alt: PyPI version
   :target: https://pypi.org/project/muzlin/

.. |badge_stars| image:: https://img.shields.io/github/stars/KulikDM/muzlin.svg?logo=github&logoColor=white&style=flat
   :alt: GitHub stars
   :target: https://github.com/KulikDM/muzlin/stargazers

.. |badge_downloads| image:: https://img.shields.io/badge/dynamic/xml?url=https%3A%2F%2Fstatic.pepy.tech%2Fbadge%2Fmuzlin&query=%2F%2F*%5Blocal-name()%20%3D%20%27text%27%5D%5Blast()%5D&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNCAyNDsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48ZyBpZD0iaW5mbyIvPjxnIGlkPSJpY29ucyI%2BPGcgaWQ9InNhdmUiPjxwYXRoIGQ9Ik0xMS4yLDE2LjZjMC40LDAuNSwxLjIsMC41LDEuNiwwbDYtNi4zQzE5LjMsOS44LDE4LjgsOSwxOCw5aC00YzAsMCwwLjItNC42LDAtN2MtMC4xLTEuMS0wLjktMi0yLTJjLTEuMSwwLTEuOSwwLjktMiwyICAgIGMtMC4yLDIuMywwLDcsMCw3SDZjLTAuOCwwLTEuMywwLjgtMC44LDEuNEwxMS4yLDE2LjZ6IiBmaWxsPSIjZWJlYmViIi8%2BPHBhdGggZD0iTTE5LDE5SDVjLTEuMSwwLTIsMC45LTIsMnYwYzAsMC42LDAuNCwxLDEsMWgxNmMwLjYsMCwxLTAuNCwxLTF2MEMyMSwxOS45LDIwLjEsMTksMTksMTl6IiBmaWxsPSIjZWJlYmViIi8%2BPC9nPjwvZz48L3N2Zz4%3D&label=downloads
   :alt: Downloads
   :target: https://pepy.tech/project/muzlin

.. |badge_versions| image:: https://img.shields.io/pypi/pyversions/muzlin.svg?logo=python&logoColor=white
   :alt: Python versions
   :target: https://pypi.org/project/muzlin/

.. |badge_licence| image:: https://img.shields.io/github/license/KulikDM/muzlin.svg?logo=data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMyIiBpZD0iaWNvbiIgdmlld0JveD0iMCAwIDMyIDMyIiB3aWR0aD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnMgZmlsbD0iI2ViZjJlZSI+PHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+PC9kZWZzPjxyZWN0IGhlaWdodD0iMiIgd2lkdGg9IjEyIiB4PSI4IiB5PSI2IiBmaWxsPSIjZWJmMmVlIi8+PHJlY3QgaGVpZ2h0PSIyIiB3aWR0aD0iMTIiIHg9IjgiIHk9IjEwIiBmaWxsPSIjZWJmMmVlIi8+PHJlY3QgaGVpZ2h0PSIyIiB3aWR0aD0iNiIgeD0iOCIgeT0iMTQiIGZpbGw9IiNlYmYyZWUiLz48cmVjdCBoZWlnaHQ9IjIiIHdpZHRoPSI0IiB4PSI4IiB5PSIyNCIgZmlsbD0iI2ViZjJlZSIvPjxwYXRoIGQ9Ik0yOS43MDcsMTkuMjkzbC0zLTNhLjk5OTQuOTk5NCwwLDAsMC0xLjQxNCwwTDE2LDI1LjU4NTlWMzBoNC40MTQxbDkuMjkyOS05LjI5M0EuOTk5NC45OTk0LDAsMCwwLDI5LjcwNywxOS4yOTNaTTE5LjU4NTksMjhIMThWMjYuNDE0MWw1LTVMMjQuNTg1OSwyM1pNMjYsMjEuNTg1OSwyNC40MTQxLDIwLDI2LDE4LjQxNDEsMjcuNTg1OSwyMFoiIGZpbGw9IiNlYmYyZWUiLz48cGF0aCBkPSJNMTIsMzBINmEyLjAwMjEsMi4wMDIxLDAsMCwxLTItMlY0QTIuMDAyMSwyLjAwMjEsMCwwLDEsNiwySDIyYTIuMDAyMSwyLjAwMjEsMCwwLDEsMiwyVjE0SDIyVjRINlYyOGg2WiIgZmlsbD0iI2ViZjJlZSIvPjxyZWN0IGNsYXNzPSJjbHMtMSIgZGF0YS1uYW1lPSImbHQ7VHJhbnNwYXJlbnQgUmVjdGFuZ2xlJmd0OyIgaGVpZ2h0PSIzMiIgaWQ9Il9UcmFuc3BhcmVudF9SZWN0YW5nbGVfIiB3aWR0aD0iMzIiIGZpbGw9IiNlYmYyZWUiLz48L3N2Zz4=
   :alt: License
   :target: https://github.com/KulikDM/muzlin/blob/master/LICENSE

----

#############
 What is it?
#############

Muzlin merges classical ML with advanced generative AI to efficiently
filter text in the context of NLP and LLMs. It answers key questions in
semantic-based workflows, such as:

-  Does a RAG/GraphRAG have the right context to answer a question?

-  Is the topk retrieved context too dense/sparse?

-  Does the generated response hallucinate or deviate from the provided
   context?

-  Should new extracted text be added to an existing RAG?

-  Can we detect inliers and outliers in collections of text embeddings
   (e.g. context, user question and answers, synthetic generated data,
   etc...)?

**Note:** While production-ready, Muzlin is still evolving and subject
to significant changes!

############
 Quickstart
############

#. **Install** Muzlin using pip:

   .. code:: bash

      pip install muzlin

#. **Create text embeddings** with a pre-trained model:

   .. code:: python

      import numpy as np
      from muzlin.encoders import HuggingFaceEncoder

      encoder = HuggingFaceEncoder()
      vectors = encoder(texts)  # texts is a list of strings
      vectors = np.array(vectors)
      np.save('vectors', vectors)

#. **Build an anomaly detection model** for filtering:

   .. code:: python

      from muzlin.anomaly import OutlierDetector
      from pyod.models.pca import PCA

      vectors = np.load('vectors.npy')  # Load pre-saved vectors

      od = PCA(contamination=0.02)

      clf = OutlierDetector(mlflow=False, detector=od) # Saves joblib moddel
      clf.fit(vectors)

#. **Filter new text** using the trained model:

   .. code:: python

      from muzlin.anomaly import OutlierDetector
      from muzlin.encoders import HuggingFaceEncoder
      import numpy as np

      clf = OutlierDetector(model='outlier_detector.pkl')  # Load the model
      encoder = HuggingFaceEncoder()

      vector = encoder(['Who was the first man to walk on the moon?'])
      vector = np.array(vector).reshape(1, -1)

      label = clf.predict(vector)

##############
 Integrations
##############

Muzlin integrates with a wide array of libraries for anomaly detection,
vector encoding, and graph-based setups.

+-----------------------------------+-------------------------+----------------------+
| **Anomaly Detection**             | **Encoders**            | **Vector Index**     |
+===================================+=========================+======================+
| -  Scikit-Learn                   | -  HuggingFace          | -  LangChain         |
| -  PyOD (vector)                  | -  OpenAI               | -  LlamaIndex        |
| -  PyGOD (graph)                  | -  Cohere               |                      |
| -  PyThresh (thresholding)        | -  Azure                |                      |
|                                   | -  Google               |                      |
|                                   | -  Amazon Bedrock       |                      |
|                                   | -  Fastembed            |                      |
+-----------------------------------+-------------------------+----------------------+

**Simple Schematic Implementation**

.. image:: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Simple_Example.png
   :target: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Simple_Example.png
   :alt: Muzlin Pipeline

----

###########
 Resources
###########

**Example Notebooks**

+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+
| Notebook                                                                                                          | Description                                                                 |
+===================================================================================================================+=============================================================================+
| `Introduction <https://github.com/KulikDM/muzlin/blob/main/examples/00_Introduction.ipynb>`_                      | Basic semantic vector-based outlier detection                               |
+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+
| `Optimal Threshold <https://github.com/KulikDM/muzlin/blob/main/examples/01_Threshold_Optimization.ipynb>`_       | Selecting optimal thresholds using various methods                          |
+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+
| `Cluster-Based Filtering <https://github.com/KulikDM/muzlin/blob/main/examples/02_Cluster_Filtering.ipynb>`_      | Cluster-based filtering for question answering                              |
+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+
| `Graph-Based Filtering <https://github.com/KulikDM/muzlin/blob/main/examples/03_Graph_Filtering.ipynb>`_          | Using graph-based anomaly detection for semantic graphs like GraphRAG       |
+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+

############
 What Else?
############

Looking for more? Check out other useful libraries like `Semantic Router
<https://github.com/aurelio-labs/semantic-router>`_, `CRAG
<https://github.com/HuskyInSalt/CRAG>`_, and `Scikit-LLM
<https://github.com/iryna-kondr/scikit-llm>`_

----

##############
 Contributing
##############

**Muzlin is still evolving!** At the moment their are major changes
being done and the structure of Muzlin is still being refined. For now,
please leave a bug report and potential new code for any fixes or
improvements. You will be added as a co-author if it is implemented.

Once this phase has been completed then ->

Anyone is welcome to contribute to Muzlin:

-  Please share your ideas and ask questions by opening an issue.

-  To contribute, first check the Issue list for the "help wanted" tag
   and comment on the one that you are interested in. The issue will
   then be assigned to you.

-  If the bug, feature, or documentation change is novel (not in the
   Issue list), you can either log a new issue or create a pull request
   for the new changes.

-  To start, fork the **dev branch** and add your
   improvement/modification/fix.

-  To make sure the code has the same style and standard, please refer
   to detector.py for example.

-  Create a pull request to the **dev branch** and follow the pull
   request template `PR template
   <https://github.com/KulikDM/muzlin/blob/main/.github/PULL_REQUEST_TEMPLATE.md>`_

-  Please make sure that all code changes are accompanied with proper
   new/updated test functions. Automatic tests will be triggered. Before
   the pull request can be merged, make sure that all the tests pass.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "muzlin",
    "maintainer": "Daniel Kulik",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "RAG, outlier-detection, filtering, retrieval, semantic, ML, LLM, NLP",
    "author": "Daniel Kulik",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/fc/f1/be6a057b090cc6a0ff4a154f9210a9aac0a53782e8c79367daeb317bcb8c/muzlin-0.0.3.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Logo.png\n   :target: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Logo.png\n   :alt: Muzlin\n\n*When a filter cloth \ud83c\udff3\ufe0f is needed rather than a simple RAG \ud83c\udff4\u200d\u2620*\n\n**Deployment, Stats, & License**\n\n|badge_pypi| |badge_stars| |badge_downloads| |badge_versions|\n|badge_licence|\n\n.. |badge_pypi| image:: https://img.shields.io/pypi/v/muzlin.svg?color=brightgreen&logo=pypi&logoColor=white\n   :alt: PyPI version\n   :target: https://pypi.org/project/muzlin/\n\n.. |badge_stars| image:: https://img.shields.io/github/stars/KulikDM/muzlin.svg?logo=github&logoColor=white&style=flat\n   :alt: GitHub stars\n   :target: https://github.com/KulikDM/muzlin/stargazers\n\n.. |badge_downloads| image:: https://img.shields.io/badge/dynamic/xml?url=https%3A%2F%2Fstatic.pepy.tech%2Fbadge%2Fmuzlin&query=%2F%2F*%5Blocal-name()%20%3D%20%27text%27%5D%5Blast()%5D&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNCAyNDsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48ZyBpZD0iaW5mbyIvPjxnIGlkPSJpY29ucyI%2BPGcgaWQ9InNhdmUiPjxwYXRoIGQ9Ik0xMS4yLDE2LjZjMC40LDAuNSwxLjIsMC41LDEuNiwwbDYtNi4zQzE5LjMsOS44LDE4LjgsOSwxOCw5aC00YzAsMCwwLjItNC42LDAtN2MtMC4xLTEuMS0wLjktMi0yLTJjLTEuMSwwLTEuOSwwLjktMiwyICAgIGMtMC4yLDIuMywwLDcsMCw3SDZjLTAuOCwwLTEuMywwLjgtMC44LDEuNEwxMS4yLDE2LjZ6IiBmaWxsPSIjZWJlYmViIi8%2BPHBhdGggZD0iTTE5LDE5SDVjLTEuMSwwLTIsMC45LTIsMnYwYzAsMC42LDAuNCwxLDEsMWgxNmMwLjYsMCwxLTAuNCwxLTF2MEMyMSwxOS45LDIwLjEsMTksMTksMTl6IiBmaWxsPSIjZWJlYmViIi8%2BPC9nPjwvZz48L3N2Zz4%3D&label=downloads\n   :alt: Downloads\n   :target: https://pepy.tech/project/muzlin\n\n.. |badge_versions| image:: https://img.shields.io/pypi/pyversions/muzlin.svg?logo=python&logoColor=white\n   :alt: Python versions\n   :target: https://pypi.org/project/muzlin/\n\n.. |badge_licence| image:: https://img.shields.io/github/license/KulikDM/muzlin.svg?logo=data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMyIiBpZD0iaWNvbiIgdmlld0JveD0iMCAwIDMyIDMyIiB3aWR0aD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnMgZmlsbD0iI2ViZjJlZSI+PHN0eWxlPgogICAgICAuY2xzLTEgewogICAgICAgIGZpbGw6IG5vbmU7CiAgICAgIH0KICAgIDwvc3R5bGU+PC9kZWZzPjxyZWN0IGhlaWdodD0iMiIgd2lkdGg9IjEyIiB4PSI4IiB5PSI2IiBmaWxsPSIjZWJmMmVlIi8+PHJlY3QgaGVpZ2h0PSIyIiB3aWR0aD0iMTIiIHg9IjgiIHk9IjEwIiBmaWxsPSIjZWJmMmVlIi8+PHJlY3QgaGVpZ2h0PSIyIiB3aWR0aD0iNiIgeD0iOCIgeT0iMTQiIGZpbGw9IiNlYmYyZWUiLz48cmVjdCBoZWlnaHQ9IjIiIHdpZHRoPSI0IiB4PSI4IiB5PSIyNCIgZmlsbD0iI2ViZjJlZSIvPjxwYXRoIGQ9Ik0yOS43MDcsMTkuMjkzbC0zLTNhLjk5OTQuOTk5NCwwLDAsMC0xLjQxNCwwTDE2LDI1LjU4NTlWMzBoNC40MTQxbDkuMjkyOS05LjI5M0EuOTk5NC45OTk0LDAsMCwwLDI5LjcwNywxOS4yOTNaTTE5LjU4NTksMjhIMThWMjYuNDE0MWw1LTVMMjQuNTg1OSwyM1pNMjYsMjEuNTg1OSwyNC40MTQxLDIwLDI2LDE4LjQxNDEsMjcuNTg1OSwyMFoiIGZpbGw9IiNlYmYyZWUiLz48cGF0aCBkPSJNMTIsMzBINmEyLjAwMjEsMi4wMDIxLDAsMCwxLTItMlY0QTIuMDAyMSwyLjAwMjEsMCwwLDEsNiwySDIyYTIuMDAyMSwyLjAwMjEsMCwwLDEsMiwyVjE0SDIyVjRINlYyOGg2WiIgZmlsbD0iI2ViZjJlZSIvPjxyZWN0IGNsYXNzPSJjbHMtMSIgZGF0YS1uYW1lPSImbHQ7VHJhbnNwYXJlbnQgUmVjdGFuZ2xlJmd0OyIgaGVpZ2h0PSIzMiIgaWQ9Il9UcmFuc3BhcmVudF9SZWN0YW5nbGVfIiB3aWR0aD0iMzIiIGZpbGw9IiNlYmYyZWUiLz48L3N2Zz4=\n   :alt: License\n   :target: https://github.com/KulikDM/muzlin/blob/master/LICENSE\n\n----\n\n#############\n What is it?\n#############\n\nMuzlin merges classical ML with advanced generative AI to efficiently\nfilter text in the context of NLP and LLMs. It answers key questions in\nsemantic-based workflows, such as:\n\n-  Does a RAG/GraphRAG have the right context to answer a question?\n\n-  Is the topk retrieved context too dense/sparse?\n\n-  Does the generated response hallucinate or deviate from the provided\n   context?\n\n-  Should new extracted text be added to an existing RAG?\n\n-  Can we detect inliers and outliers in collections of text embeddings\n   (e.g. context, user question and answers, synthetic generated data,\n   etc...)?\n\n**Note:** While production-ready, Muzlin is still evolving and subject\nto significant changes!\n\n############\n Quickstart\n############\n\n#. **Install** Muzlin using pip:\n\n   .. code:: bash\n\n      pip install muzlin\n\n#. **Create text embeddings** with a pre-trained model:\n\n   .. code:: python\n\n      import numpy as np\n      from muzlin.encoders import HuggingFaceEncoder\n\n      encoder = HuggingFaceEncoder()\n      vectors = encoder(texts)  # texts is a list of strings\n      vectors = np.array(vectors)\n      np.save('vectors', vectors)\n\n#. **Build an anomaly detection model** for filtering:\n\n   .. code:: python\n\n      from muzlin.anomaly import OutlierDetector\n      from pyod.models.pca import PCA\n\n      vectors = np.load('vectors.npy')  # Load pre-saved vectors\n\n      od = PCA(contamination=0.02)\n\n      clf = OutlierDetector(mlflow=False, detector=od) # Saves joblib moddel\n      clf.fit(vectors)\n\n#. **Filter new text** using the trained model:\n\n   .. code:: python\n\n      from muzlin.anomaly import OutlierDetector\n      from muzlin.encoders import HuggingFaceEncoder\n      import numpy as np\n\n      clf = OutlierDetector(model='outlier_detector.pkl')  # Load the model\n      encoder = HuggingFaceEncoder()\n\n      vector = encoder(['Who was the first man to walk on the moon?'])\n      vector = np.array(vector).reshape(1, -1)\n\n      label = clf.predict(vector)\n\n##############\n Integrations\n##############\n\nMuzlin integrates with a wide array of libraries for anomaly detection,\nvector encoding, and graph-based setups.\n\n+-----------------------------------+-------------------------+----------------------+\n| **Anomaly Detection**             | **Encoders**            | **Vector Index**     |\n+===================================+=========================+======================+\n| -  Scikit-Learn                   | -  HuggingFace          | -  LangChain         |\n| -  PyOD (vector)                  | -  OpenAI               | -  LlamaIndex        |\n| -  PyGOD (graph)                  | -  Cohere               |                      |\n| -  PyThresh (thresholding)        | -  Azure                |                      |\n|                                   | -  Google               |                      |\n|                                   | -  Amazon Bedrock       |                      |\n|                                   | -  Fastembed            |                      |\n+-----------------------------------+-------------------------+----------------------+\n\n**Simple Schematic Implementation**\n\n.. image:: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Simple_Example.png\n   :target: https://raw.githubusercontent.com/KulikDM/muzlin/main/images/Simple_Example.png\n   :alt: Muzlin Pipeline\n\n----\n\n###########\n Resources\n###########\n\n**Example Notebooks**\n\n+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+\n| Notebook                                                                                                          | Description                                                                 |\n+===================================================================================================================+=============================================================================+\n| `Introduction <https://github.com/KulikDM/muzlin/blob/main/examples/00_Introduction.ipynb>`_                      | Basic semantic vector-based outlier detection                               |\n+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+\n| `Optimal Threshold <https://github.com/KulikDM/muzlin/blob/main/examples/01_Threshold_Optimization.ipynb>`_       | Selecting optimal thresholds using various methods                          |\n+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+\n| `Cluster-Based Filtering <https://github.com/KulikDM/muzlin/blob/main/examples/02_Cluster_Filtering.ipynb>`_      | Cluster-based filtering for question answering                              |\n+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+\n| `Graph-Based Filtering <https://github.com/KulikDM/muzlin/blob/main/examples/03_Graph_Filtering.ipynb>`_          | Using graph-based anomaly detection for semantic graphs like GraphRAG       |\n+-------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------+\n\n############\n What Else?\n############\n\nLooking for more? Check out other useful libraries like `Semantic Router\n<https://github.com/aurelio-labs/semantic-router>`_, `CRAG\n<https://github.com/HuskyInSalt/CRAG>`_, and `Scikit-LLM\n<https://github.com/iryna-kondr/scikit-llm>`_\n\n----\n\n##############\n Contributing\n##############\n\n**Muzlin is still evolving!** At the moment their are major changes\nbeing done and the structure of Muzlin is still being refined. For now,\nplease leave a bug report and potential new code for any fixes or\nimprovements. You will be added as a co-author if it is implemented.\n\nOnce this phase has been completed then ->\n\nAnyone is welcome to contribute to Muzlin:\n\n-  Please share your ideas and ask questions by opening an issue.\n\n-  To contribute, first check the Issue list for the \"help wanted\" tag\n   and comment on the one that you are interested in. The issue will\n   then be assigned to you.\n\n-  If the bug, feature, or documentation change is novel (not in the\n   Issue list), you can either log a new issue or create a pull request\n   for the new changes.\n\n-  To start, fork the **dev branch** and add your\n   improvement/modification/fix.\n\n-  To make sure the code has the same style and standard, please refer\n   to detector.py for example.\n\n-  Create a pull request to the **dev branch** and follow the pull\n   request template `PR template\n   <https://github.com/KulikDM/muzlin/blob/main/.github/PULL_REQUEST_TEMPLATE.md>`_\n\n-  Please make sure that all code changes are accompanied with proper\n   new/updated test functions. Automatic tests will be triggered. Before\n   the pull request can be merged, make sure that all the tests pass.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Daniel Kulik  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Muzlin: a filtering toolset for semantic machine learning",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/KulikDM/muzlin",
        "Repository": "https://github.com/KulikDM/muzlin"
    },
    "split_keywords": [
        "rag",
        " outlier-detection",
        " filtering",
        " retrieval",
        " semantic",
        " ml",
        " llm",
        " nlp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5f60dce0a6ec8ef1ff2e03458f5d143faaea698d5086c04d302f1c71de3fa64",
                "md5": "b6eeb0a6adc1d845b93ae07c30f57549",
                "sha256": "d061e7205bded7d25b6507398c4828937dc2605541f8473d80a5cfbfa5d7153f"
            },
            "downloads": -1,
            "filename": "muzlin-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6eeb0a6adc1d845b93ae07c30f57549",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 37737,
            "upload_time": "2024-11-17T18:01:06",
            "upload_time_iso_8601": "2024-11-17T18:01:06.274158Z",
            "url": "https://files.pythonhosted.org/packages/f5/f6/0dce0a6ec8ef1ff2e03458f5d143faaea698d5086c04d302f1c71de3fa64/muzlin-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fcf1be6a057b090cc6a0ff4a154f9210a9aac0a53782e8c79367daeb317bcb8c",
                "md5": "e64d76144d4c88d679ec910854409df8",
                "sha256": "0922c6f215af72aff0625ba6187f99539929870939d6dd672ee2daecde75f2f4"
            },
            "downloads": -1,
            "filename": "muzlin-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e64d76144d4c88d679ec910854409df8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 31040,
            "upload_time": "2024-11-17T18:01:07",
            "upload_time_iso_8601": "2024-11-17T18:01:07.805503Z",
            "url": "https://files.pythonhosted.org/packages/fc/f1/be6a057b090cc6a0ff4a154f9210a9aac0a53782e8c79367daeb317bcb8c/muzlin-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 18:01:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "KulikDM",
    "github_project": "muzlin",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "muzlin"
}
        
Elapsed time: 1.77858s