diff --git a/udfs/index.md b/udfs/index.md index d93f779..200bd45 100644 --- a/udfs/index.md +++ b/udfs/index.md @@ -7,19 +7,18 @@ nav_order: 6 # UDFs -Every databases comes with a set of built-in functions, for example among FalkorDB functions you'll find: -`abs` - computes the absolute value of a number -`pow` - computes v^x -`trim` - removes leading and trailing spaces. +Every database comes with a set of built-in functions. For example, FalkorDB functions include: +- `abs` - computes the absolute value of a number +- `pow` - computes v^x +- `trim` - removes leading and trailing spaces. -These are baked into the DB and are part of its source code, introducing a new function e.g. `UpperCaseOdd`isn't always trivial, -the function needs to be usable to a wide audience for it to be considered, in the past we've rejected requests for adding new functions as these were too specific and we didn't believe they've added a significant value for most of our users. +These functions are built into the database and are part of its source code. Introducing a new function (for example, `UpperCaseOdd`) is not always trivial. The function needs to be usable to a wide audience for it to be considered. In the past, FalkorDB has rejected requests for adding new functions when these were too specific and did not add significant value for most users. -But now, with the support of UDFs, everyone can extend FalkorDB's functionality with their own set of functions. Following is an introduction to UDFs, how to manage & use them within FalkorDB. +However, with the support of UDFs, everyone can extend FalkorDB's functionality with their own set of functions. The following sections introduce UDFs and explain how to manage and use them within FalkorDB. -## Example -In order to introduce UDFs, please review the following, a complete example which loads a new UDF library "StringUtils" that includes a single function "UpperCaseOdd", once loaded the script puts it to use. +## Practical Example +To introduce UDFs, review the following complete example, which loads a new UDF library called "StringUtils" that includes a single function called "UpperCaseOdd". Once loaded, the script puts the function to use. ```python from falkordb import FalkorDB @@ -57,13 +56,13 @@ print(f"s: {s}") # prints 'AbCdEf' ``` ## Commands Specification -Although conveniently available through `FalkorDB-PY` Python client, FalkorDB exposes its UDF functionality via a set of new `GRAPH.UDF ` commands. +The FalkorDB-PY Python client provides convenient access to UDF functionality, but FalkorDB also exposes this functionality via a set of GRAPH.UDF commands. ### GRAPH.UDF LOAD [REPLACE]