Tomaž Bratanič Picture

Tomaž Bratanič

Graph ML and GenAI Research, Neo4j

Tomaž Bratanič works at the intersection of graphs and machine learning and generative AI.


Latest Posts by Tomaž Bratanič

The Limitations of Text Embeddings in RAG Applications

Learn how to overcome them using knowledge graphs and structured toolsEveryone loves text embedding models, and for good reason: They excel at encoding unstructured text, making it easier to discover semantically similar content. It’s no surprise that they form the backbone of most RAG... read more


Integrating Microsoft GraphRAG into Neo4j

Store the MSFT GraphRAG output into Neo4j and implement local and global retrievers with LangChain or LlamaIndex Microsoft’s GraphRAG implementation has gained significant attention lately. In my last blog post, I discussed how the graph is constructed and explored some of the innovative... read more





Customize Property Graph Index in LlamaIndex.

Customizing Property Graph Index in LlamaIndex

Entity Deduplication and Custom Retrieval Methods to Increase GraphRAG Accuracy BackgroundThe Property Graph Index is an excellent addition to LlamaIndex and an upgrade from the previous knowledge graph integration. The data representation is now slightly different. In the previous... read more



LangChain Library now supports Neo4j vector index.

LangChain Library Adds Full Support for Neo4j Vector Index

When you give large language models (LLMs) the power to search beyond their own fixed knowledge and pull in information from the wider world, you have more options for LLM-powered applications. This technique of retrieving data from external sources is called retrieval-augmented generation... read more



Knowledge graphs & LLMs for multi-hop question answering.

Knowledge Graphs & LLMs: Multi-Hop Question Answering

Retrieval-augmented generation (RAG) applications excel at answering simple questions by integrating data from external sources into LLMs. But they struggle to answer multi-part questions that involve connecting the dots between associated pieces of information. That’s because RAG applications... read more


Using a Knowledge Graph to Implement a RAG Application

Forbes recently named RAG applications the hottest thing in AI. That comes as no surprise since Retrieval-Augmented Generation requires minimal code and helps build user trust in your LLM. The challenge when building a great RAG app or chatbot is handling structured text alongside unstructured... read more


How to implement advanced RAG strategies with Neo4j

Implementing Advanced Retrieval RAG Strategies With Neo4j

These days, you can deploy retrieval-augmented generation (RAG) applications in just a few minutes. Most RAG applications like Chat with Your PDF use basic vector similarity search to retrieve relevant information from the database and feed it to the LLM to generate a final response. Vector... read more


JSON-based Agents With Ollama & LangChain

Learn to implement a Mixtral agent that interacts with a graph database Neo4j through a semantic layer   By now, we all have probably recognized that we can significantly enhance the capabilities of LLMs by providing them with additional tools. For example, even ChatGPT can use Bing... read more



Knowledge Graphs & LLMs: Real-Time Graph Analytics

Understanding data points through the context of their relationshipsThis is the fourth blog post of Neo4j’s NaLLM project. We started this project to explore, develop, and showcase practical uses of these LLMs in conjunction with Neo4j. As part of this project, we will construct and publicly... read more


LangChain Cypher Search: Tips & Tricks

How to optimize prompts for Cypher statement generation to retrieve relevant information from Neo4j in your LLM applicationsLast time, we looked at how to get started with Cypher Search in the LangChain library and why you would want to use knowledge graphs in your LLM applications. In this... read more


Generating Cypher Queries With ChatGPT 4 on Any Graph Schema

Will we still need to learn query languages in the future?Photo by Lyman Hansel Gerona on UnsplashLarge language models have great potential to translate a natural language into a query language. For example, some people use GPT models to translate text to SQL, while others use GPT models... read more


Context-Aware Knowledge Graph Chatbot With GPT-4 and Neo4j

Learn how to implement a chatbot that bases its answers on the information retrieved from a graph databaseNot so long ago, OpenAI added Chat API, which is optimized for generating conversations. The main difference between Chat and the older Completion APIs is that the Chat API allows specifying... read more



Enhancing Word Embedding with Graph Neural Networks

Natural Language Processing (NLP) has seen rapid advancements in recent years. One important aspect of this progress has been the use of embeddings, which are numerical representations of words or phrases that capture their meaning and relationships to other words in a language. Embeddings can be... read more


Knowledge Graph-Based Chatbot With GPT-3 and Neo4j

ChatGPT has changed how I, and probably most of you, look at AI and chatbots. We can use chatbots to help us find information, construct creative works, and more.However, one problem with ChatGPT and similar chatbots is that they can hallucinate and return... read more





From Text to a Knowledge Graph: The Information Extraction Pipeline

Editor's note: This presentation is given by Tomaz Bratanic at NODES 2021. As organizations build knowledge graphs to find answers to their most pressing problems, one of the challenges they face is that much of the information they would like to incorporate in their knowledge graphs exists in... read more