cd /news/artificial-intelligence/feeding-your-local-data-to-llms-ii · home topics artificial-intelligence article
[ARTICLE · art-123347] src=blog.devgenius.io ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Feeding Your Local Data to LLMs (II)

A developer tutorial demonstrates extending local LLM data feeding by storing embeddings in a Neo4j graph database and combining similarity search with full-text search, using a local LLM and Python packages including langchain_community, tiktoken, neo4j, openai, sentence-transformers, ipywidgets, and pdfplumber.

read1 min views3 publishedSep 8, 2026
Feeding Your Local Data to LLMs (II)
Image: Blog (auto-discovered)

Member-only story

In the previous article, I presented a simple way for feeding local data into LLM queries. In this article, it is extended in two ways.

  • The embedding will be stored in a graph database
  • Similarity search will be combined with full-text search

I will use Neo4j graph database. For this article, a community version is deployed on Kubernetes. The detailed deployment steps are available in Deploying Neo4j Graph Database in Kubernetes article.

The overall procedure is shown in the diagram below.

Code Walk-through #

In this section, we will go through a running example code. We use a local LLM and a Neo4j graph database as a knowledge database.

We install the following Python packages for the example code.

  • langchain_community
  • tiktoken
  • neo4j
  • openai
  • sentence-transformers
  • ipywidgets
  • pdfplumber

We set all the environment specific variables in the .env file and load it using the load_dotenv function.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @neo4j 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/feeding-your-local-d…] indexed:0 read:1min 2026-09-08 ·