Skip to content

GenAI prototype for Syslog

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

rcsousa/GenAI-SysLog

Repository files navigation

Syslog-ng Indexer

This code is a Python script that creates a FAISS index from a log file. The FAISS index is a similarity search index that allows for fast and efficient similarity searches. The script reads the content from a log file, splits it into chunks of 1000 characters, and creates a FAISS index with a dimensionality compatible with OpenAI embeddings. The script also includes commented code that initializes a Kafka consumer and creates a FAISS index if there is a message in the topic.

Dependencies

This script requires the following dependencies:

You can install these dependencies by running the following command:

pip install langchain numpy faiss kafka-python

How to Execute the Code

To execute the code, you need to run the main() function in the script. You can do this by running the following command:

python syslog-ng-indexer.py

How to Contribute

If you want to contribute to this project, you can fork the repository and submit a pull request with your changes. Please make sure to follow the PEP 8 style guide (https://www.python.org/dev/peps/pep-0008/) and include tests for your changes.

References

About

GenAI prototype for Syslog

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published