Convert any text to a graph of knowledge. This can be used for Graph Augmented Generation or Knowledge Graph based QnA
HTML
removing Dependency Headache by Dockerizing
SakshamSahgal937e0bfee78f
diff --git a/README.md b/README.mdindex 8de403d..3a06f37 100644--- a/README.md+++ b/README.md@@ -60,40 +60,22 @@ Additional it also calculates the Degree of each node, and Communities of nodes,## Installing Locally### Prerequisites-- Python 3.11 or higher-- Poetry (recommended) or pip+- Docker-### Using Poetry (Recommended)+### Using Docker (Recommended)1. Clone the repository:```bashgit clone https://github.com/rahulnyk/knowledge_graph.gitcd knowledge_graph```--2. Install dependencies and the package:- ```bash- poetry install+2. Build```--### Using pip-1. Clone the repository:- ```bash- git clone https://github.com/rahulnyk/knowledge_graph.git- cd knowledge_graph+ docker build -t knowledge-graph .```--2. Install in editable mode:- ```bash- pip install -e .+3. Run+ ```+ docker run -p 8888:8888 knowledge-graph```--### Verifying Installation-After installation, you can verify everything is working by running the tests:-```bash-poetry run pytest-# or if using pip:-pytest-```---## Tech Stackdiff --git a/dockerfile b/dockerfilenew file mode 100644index 0000000..b882875--- /dev/null+++ b/dockerfile@@ -0,0 +1,27 @@+# Use official Python slim image+FROM python:3.11-slim++ENV PYTHONDONTWRITEBYTECODE=1+ENV PYTHONUNBUFFERED=1+ENV PATH="/root/.local/bin:$PATH"++# Install system dependencies+RUN apt-get update && apt-get install -y --no-install-recommends \+ build-essential curl git && rm -rf /var/lib/apt/lists/*++# Install Poetry+RUN curl -sSL https://install.python-poetry.org | python3 -++WORKDIR /app++# Copy dependency files+COPY pyproject.toml poetry.lock* /app/++# Install dependencies via Poetry+RUN poetry install --no-root --no-interaction --no-ansi++# Copy application code+COPY . .++# Run JupyterLab instead of notebook+CMD ["poetry", "run", "jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]\ No newline at end of file