Skip to content

Commit b9b75b1

Browse files
authored
Merge branch 'main' into memgraph-3-1
2 parents 37833e0 + b0c54cb commit b9b75b1

File tree

19 files changed

+1473
-396
lines changed

19 files changed

+1473
-396
lines changed

next.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,13 @@ export default withNextra({
31283128
source: '/advanced-algorithms/available-algorithms#streaming-graph-algorithms',
31293129
destination: '/advanced-algorithms/available-algorithms#dynamic-graph-algorithms-enterprise',
31303130
permanent: true
3131+
},
3132+
{
3133+
source: '/data-modeling/knowledge-graph',
3134+
destination: '/data-modeling/modeling-guides/model-a-knowledge-graph',
3135+
permanent: true
31313136
}
31323137
];
31333138
},
3134-
});
3139+
});
3140+

pages/advanced-algorithms/available-algorithms/leiden_community_detection.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ space complexity if $\mathcal{O}(VE)$ for $V$ nodes and $E$ edges.
4444
| **Relationship weights** | weighted / unweighted |
4545
| **Parallelism** | parallel |
4646

47+
<Callout type="info">
48+
This implementation of Leiden is non-deterministic, meaning it can generate
49+
different communities in subsequent runs. To control the randomness, tweak the
50+
`theta` parameter.
51+
</Callout>
52+
4753
## Procedures
4854

4955
<Callout type="info">

pages/advanced-algorithms/available-algorithms/path.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ CALL path.expand(d,["CATCHES>","<HATES"],[">Mouse", ">Human"],0,4) YIELD result
324324

325325
**Example 2**
326326

327-
The wuery will expand from the `Dog` labeled node only on incoming
327+
The query will expand from the `Dog` labeled node only on incoming
328328
relationships. Also, label `Human` is blacklisted.
329329

330330
```cypher

pages/ai-ecosystem/graph-rag/knowledge-graph-creation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Investing time in data modeling is essential for building a scalable, accurate a
4343
/>
4444
<Cards.Card
4545
title="Knowledge graph modeling"
46-
href="/data-modeling/knowledge-graph"
46+
href="/data-modeling/modeling-guides/model-a-knowledge-graph"
4747
/>
4848
</Cards>
4949

pages/ai-ecosystem/integrations.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {CommunityLinks} from '/components/social-card/CommunityLinks'
2+
import { Cards } from 'nextra/components'
23

34
# Integrations
45

@@ -140,6 +141,20 @@ In the image below, you can see what's happening under the hood to get the answe
140141

141142
![llama-retriever](/pages/ai-ecosystem/integrations/llama-retriever.png)
142143

144+
{<h3 className="custom-header">Demos</h3>}
145+
146+
If you'd like to take it one step further, explore how Memgraph and LlamaIndex
147+
work together in real-world applications with these interactive demos:
148+
149+
- [**Single-agent GraphRAG
150+
system**](https://github.com/memgraph/ai-demos/blob/main/integrations/llamaindex/single-agent-rag-system/single_agent_rag_system.ipynb):
151+
Learn how to build an agent-powered graph retrieval-augmented generation (RAG)
152+
system using Memgraph and LlamaIndex.
153+
- [**Multi-agent GraphRAG
154+
System**](https://github.com/memgraph/ai-demos/blob/main/integrations/llamaindex/multi-agent-rag-system/multi_agent_rag_system.ipynb):
155+
Dive into a more advanced setup with multiple agents collaborating in a
156+
GraphRAG system.
157+
143158
## LangChain
144159

145160
LangChain is a framework for developing applications powered by large language

pages/client-libraries/php.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import CodeSnippet from '/components/code-snippet/CodeSnippet'
1111

1212
Learn how to create a PHP application that connects to the Memgraph database and executes simple queries.
1313

14-
Community-contributed library [PHP Bolt](https://github.com/neo4j-php/Bolt) by Michal Štefaňák is the most commonly used to connect to Memgraph with PHP via Bolt protocol.
14+
Community-contributed library [PHP Bolt driver](https://github.com/stefanak-michal/php-bolt-driver) by Michal Štefaňák is the most commonly used to connect to Memgraph with PHP via Bolt protocol.
1515
Memgraph and Neo4j both support Bolt protocol and Cypher queries, which means that same client can be used to connect to both databases.
1616
This is very convenient if switching between the two databases is needed.
1717

@@ -21,7 +21,7 @@ The following guide will demonstrate how to start Memgraph, connect to it, seed
2121

2222
The necessary prerequisites that should be installed in your local environment are:
2323

24-
- [PHP >= 7.4](https://www.php.net/manual/en/install.php)
24+
- [PHP >= 8.1](https://www.php.net/manual/en/install.php)
2525
- [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos), a tool for dependency management in PHP.
2626
- [Docker](https://docs.docker.com/get-docker/)
2727

@@ -90,8 +90,8 @@ $bolt->setProtocolVersions(5.2);
9090
// Build and get protocol version instance which creates connection and executes handshake.
9191
$protocol = $bolt->build();
9292
// Login to database with credentials.
93-
$protocol->hello();
94-
$protocol->logon(\Bolt\helpers\Auth::basic('', ''));
93+
$protocol->hello()->getResponse();
94+
$protocol->logon(['scheme' => 'none', 'principal' => '', 'credentials' => ''])->getResponse();
9595

9696
// Pipeline two messages. One to execute query with parameters and second to pull records.
9797
$protocol
@@ -101,7 +101,7 @@ $protocol
101101
// Server responses are waiting to be fetched through iterator.
102102
$rows = iterator_to_array($protocol->getResponses(), false);
103103
// Get content from requested record.
104-
$row = $rows[1]->getContent();
104+
$row = $rows[1]->content;
105105

106106
echo 'Node ' . $row[0] . ' says: ' . $row[1];
107107
?>
@@ -113,7 +113,7 @@ In the example above Bolt protocol version 5.2 is used. When you're connecting t
113113
```php
114114
$bolt = new \Bolt\Bolt($conn);
115115
$bolt->setProtocolVersions(4.3, 4.1, 4.2);
116-
$protocol->hello(\Bolt\helpers\Auth::basic('', ''));
116+
$protocol->hello(['scheme' => 'none', 'principal' => '', 'credentials' => '']);
117117
```
118118
</Callout>
119119

@@ -128,10 +128,6 @@ composer require stefanak-michal/bolt
128128

129129
That command will create `composer.json` file.
130130

131-
<Callout type="info">
132-
To use Bolt protocol version 5.2 with Memgraph, install PHP Bolt library version >= 6.1.3.
133-
</Callout>
134-
135131
### Run the application
136132

137133
To run the application, run the following command in terminal:
@@ -152,7 +148,7 @@ Another way of running your application is by adding a script in the `composer.j
152148
```json
153149
{
154150
"require": {
155-
"stefanak-michal/bolt": "6.1.3"
151+
"stefanak-michal/bolt": "^7"
156152
},
157153
"scripts": {
158154
"start": "php -S localhost:4000"
@@ -177,7 +173,7 @@ That query will visualize the created node. By clicking on a node, you can explo
177173

178174
### Next steps
179175

180-
This guide makes a good starting point when building PHP applications. Check out the [PHP Bolt driver repository](https://github.com/neo4j-php/Bolt) to learn more about using the PHP Bolt library.
176+
This guide makes a good starting point when building PHP applications. Check out the [PHP Bolt driver repository](https://github.com/stefanak-michal/php-bolt-driver) to learn more about using the PHP Bolt library.
181177

182178
You can simplify the usage of this library with the [Memgraph Bolt wrapper](https://github.com/stefanak-michal/memgraph-bolt-wrapper).
183179

@@ -189,4 +185,4 @@ If you encounter serialization errors while using PHP client, we recommend
189185
referring to our [Serialization errors](/help-center/errors/serialization) page
190186
for detailed guidance on troubleshooting and best practices.
191187

192-
</Callout>
188+
</Callout>

0 commit comments

Comments
 (0)