Skip to content

Commit 5e079a7

Browse files
authored
Merge branch 'main' into patch-1
2 parents d8fea33 + 1a430be commit 5e079a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1216
-211
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @hal-eisen-MG
1+
* @katarinasupe @gitbuda

.github/pull_request_template.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ PR this doc page is related to:
1717
Closes:
1818
(paste the link to the issue it closes)
1919

20-
2120
### Checklist:
2221

22+
- [ ] Make sure all relevant tech details are documented
23+
- [ ] Update reference pages (e.g. [clauses](https://memgraph.com/docs/querying/clauses), [functions](https://memgraph.com/docs/querying/functions), [flags](https://memgraph.com/docs/database-management/configuration#list-of-configuration-flags), [experimental](https://memgraph.com/docs/database-management/experimental-features), [monitoring](https://memgraph.com/docs/database-management/monitoring))
24+
- [ ] Search for the feature you are working on (mentions) and make updates if needed
25+
- [ ] Provide a basic example of usage
26+
- [ ] In case your feature is an Enterprise one, list it under [ME page](https://memgraph.com/docs/database-management/enabling-memgraph-enterprise) and mark its page with Enterprise ([example](https://memgraph.com/docs/database-management/authentication-and-authorization/role-based-access-control)).
2327
- [ ] Check all content with Grammarly
2428
- [ ] Perform a self-review of my code
25-
- [ ] Make corresponding changes to the rest of the documentation (consult with the DX team)
2629
- [ ] The build passes locally
2730
- [ ] My changes generate no new warnings or errors
2831
- [ ] Add a corresponding label

components/code-snippet/CodeSnippet.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export default function CodeSnippet(props: { code: string; page: string, os: str
2929

3030
const copyToClipboard = () => {
3131
navigator.clipboard.writeText(props.code);
32-
global.window.analytics.track("Docker Run Copied", {
33-
source: "docs",
34-
page: props.page,
35-
os: props.os
36-
});
32+
// global.window.analytics.track("Docker Run Copied", {
33+
// source: "docs",
34+
// page: props.page,
35+
// os: props.os
36+
// });
3737
document.getElementById(idCopy)?.classList.add("hidden");
3838
document.getElementById(idCopied)?.classList.remove("hidden");
3939
setTimeout(() => {

components/link-click/LinkClick.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

next.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2937,13 +2937,13 @@ module.exports = withNextra({
29372937
source: '/memgraph/2.1.0/getting-started',
29382938
destination: '/getting-started',
29392939
permanent: true
2940-
},
2940+
},
29412941
//END 404 links redirects
29422942
{
29432943
source: '/configuration/exposing-system-metrics',
29442944
destination: '/configuration/monitoring-server',
29452945
permanent: true
2946-
},
2946+
},
29472947
{
29482948
source: '/configuration/ldap-security',
29492949
destination: '/configuration/auth-module',
@@ -2958,12 +2958,12 @@ module.exports = withNextra({
29582958
source: '/advanced-algorithms/available-algorithms/schema',
29592959
destination: '/querying/functions#schema',
29602960
permanent: true
2961-
},
2961+
},
29622962
{
29632963
source: '/advanced-algorithms/available-algorithms/convert',
29642964
destination: '/querying/functions#conversion-functions',
29652965
permanent: true
2966-
},
2966+
},
29672967
{
29682968
source: '/querying/functions#schema',
29692969
destination: '/querying/schema',
@@ -2975,8 +2975,8 @@ module.exports = withNextra({
29752975
permanent: true
29762976
},
29772977
{
2978-
source: '/configuration/experimental-replication',
2979-
destination: '/configuration/replication/experimental-replication',
2978+
source: '/configuration/system-replication',
2979+
destination: '/configuration/replication/system-replication',
29802980
permanent: true
29812981
},
29822982
{
@@ -3046,8 +3046,8 @@ module.exports = withNextra({
30463046
permanent: true
30473047
},
30483048
{
3049-
source: '/configuration/replication/experimental-replication',
3050-
destination: '/clustering/replication/experimental-replication',
3049+
source: '/configuration/replication/system-replication',
3050+
destination: '/clustering/replication/system-replication',
30513051
permanent: true
30523052
},
30533053
{

pages/_app.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ function MyApp({ Component, pageProps }: AppProps) {
99

1010
return (
1111
<>
12-
<Script strategy="lazyOnload" id="segment">{`
13-
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="CqNYSAW7IN6mk3psB5M7tb4FS6BD9fJx";analytics.SNIPPET_VERSION="4.13.2";
14-
analytics.load("CqNYSAW7IN6mk3psB5M7tb4FS6BD9fJx");
15-
analytics.page();
16-
}}();
17-
`}</Script>
1812
<Script strategy="lazyOnload" id="google-tag-manager">{`
1913
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
2014
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

pages/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"index": "Home",
33
"getting-started": "Getting started",
44
"client-libraries": "Client libraries",
5+
"ai-ecosystem": "AI ecosystem",
56
"fundamentals": "Fundamentals",
67
"data-migration": "Data migration",
78
"querying": "Querying",

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

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,18 @@ its expectation, which is Rank(v).
4848
| **Edge weights** | unweighted |
4949
| **Parallelism** | sequential |
5050

51+
<Callout type="info">
52+
This algorithm is currently running in a sequential manner, but can be parallelized.
53+
If you have a use case for parallelizing this algorithm, please contact us over
54+
**[Discord](https://discord.gg/memgraph).**
55+
</Callout>
56+
5157
## Procedures
5258

5359
Online PageRank should be used by executing the procedures in the following way:
54-
1. Parameters and the context is set using the `set()` procedure.
60+
1. With the `set()` procedure, the PageRank values are calculated on the graph for the first time. This function
61+
is also important as it sets the streaming context for this algorithm, so further updates of the graph
62+
can result in faster execution.
5563

5664
2. To make the incremental flow, set the proper trigger using the `update()` function:
5765

@@ -63,7 +71,9 @@ Online PageRank should be used by executing the procedures in the following way:
6371
SET node.rank = rank;
6472
```
6573

66-
3. Use the `get()` procedure to return the resulting values stored in the cache.
74+
3. Use the `get()` procedure to return the resulting values stored in the cache. If the user hasn't previously run
75+
`set()`, the procedure will also do the `set()` functionality first in order to initialize the streaming context of
76+
this algorithm.
6777
4. Finally, the `reset()` function resets the context and enables you to start new runs.
6878

6979
<Callout type="info">
@@ -72,12 +82,15 @@ You can execute this algorithm on [graph projections, subgraphs or portions of t
7282

7383
### `set()`
7484

75-
The procedure calculates PageRank for the nodes in the graph.
85+
The procedure calculates PageRank for the nodes in the graph. The procedure is currently running in a
86+
sequential manner, but can be parallelized
87+
(the [non-streaming version of pagerank](/advanced-algorithms/available-algorithms/pagerank) offers
88+
parallelism, but is not applicable as it doesn't set the streaming context for the algorithm).
7689

7790
{<h4> Input: </h4>}
7891

7992
- `subgraph: Graph` (**OPTIONAL**) ➡ A specific subgraph, which is an [object of type Graph](/advanced-algorithms/run-algorithms#run-procedures-on-subgraph) returned by the `project()` function, on which the algorithm is run.
80-
- `walks_per_node: integer (default=10)` ➡ Number of sampled walks per node.
93+
- `walks_per_node: integer (default=10)` ➡ Number of sampled walks per node. Note that increasing the number of walks per node will make the execution run for more time.
8194
- `walk_stop_epsilon: double (default=0.1)` ➡ The probability of stopping when deriving
8295
the random walk. On average, it will create walks of length `1 /
8396
walk_stop_epsilon`.
@@ -93,7 +106,7 @@ The procedure calculates PageRank for the nodes in the graph.
93106
Use the following query to calculate PageRank:
94107

95108
```cypher
96-
CALL pagerank_online.set(100, 0.2)
109+
CALL pagerank_online.set()
97110
YIELD node, rank;
98111
```
99112

pages/ai-ecosystem.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Memgraph's AI Ecosystem
3+
description: Explore key features, such as community detection, node embeddings, and graph neural networks, alongside integrations with popular AI libraries like LangChain and LlamaIndex, to create powerful, data-driven GenAI solutions.
4+
---
5+
6+
import { Card, Cards } from 'nextra/components'
7+
import { Callout } from 'nextra/components'
8+
9+
# Memgraph's AI Ecosystem
10+
11+
To learn about Memgraph's key features to build AI apps, explore the following
12+
pages:
13+
14+
- [GraphRAG](/ai-ecosystem/graph-rag)
15+
- [Machine learning](/ai-ecosystem/machine-learning)
16+
17+
18+
AI spans multiple areas like machine learning (ML), natural language processing
19+
(NLP), and knowledge representation and reasoning (KRR), often overlapping to
20+
create advanced systems. A key example is **Generative AI (GenAI)**, which generates
21+
new content like text or images. Large Language Models (LLMs) power many GenAI
22+
apps, but getting them to work with your custom data can be challenging.
23+
24+
Fine-tuning LLMs to incorporate custom data is often complex, slow, and costly.
25+
Plus, frequent updates make it inefficient.
26+
27+
**Retrieval-Augmented Generation (RAG)** solves this by enhancing LLMs with
28+
external data sources, enabling dynamic, scalable knowledge updates. Traditional
29+
RAG is based on vector structure with vector databases, and it has proven to be
30+
a great solution in many use cases. Still, it often falls short when retrieving
31+
crucial knowledge from complex datasets. That is where GraphRAG excels.
32+
33+
**GraphRAG** improves on this by using knowledge graphs and graph features (e.g.,
34+
community detection, neighborhood analysis) for more accurate retrieval and
35+
data-rich insights. This hybrid approach provides better context and performance
36+
for GenAI applications.
37+
38+
Memgraph has been a popular choice in AI, especially for cases that utilize
39+
[machine learning](/ai-ecosystem/machine-learning). It also proves to be a great
40+
choice to build a [GraphRAG](/ai-ecosystem/graph-rag).
41+

pages/ai-ecosystem/_meta.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"graph-rag": "GraphRAG",
3+
"machine-learning": "Machine learning"
4+
}

0 commit comments

Comments
 (0)