1- Flower Intelligence
2- ===================
1+ #####################
2+ Flower Intelligence
3+ #####################
34
45.. note ::
56
@@ -13,8 +14,9 @@ Friendly Federated AI Framework <https://flower.ai>`_.
1314
1415We currently provide SDKs for TypeScript/JavaScript, Kotlin, and Swift.
1516
16- Install
17- -------
17+ *********
18+ Install
19+ *********
1820
1921.. tab-set ::
2022 :sync-group: category
@@ -52,8 +54,9 @@ Install
5254 # Add Flower Intelligence dependency to your build.gradle.kts
5355 implementation(" ai.flower:intelligence:0.1.8" )
5456
55- Hello, Flower Intelligence!
56- ---------------------------
57+ *****************************
58+ Hello, Flower Intelligence!
59+ *****************************
5760
5861Flower Intelligence is built around the Singleton design pattern, meaning you only need
5962to configure a single instance that can be reused throughout your project. This simple
@@ -136,8 +139,9 @@ setup helps you integrate powerful AI capabilities with minimal overhead.
136139 }
137140 }
138141
139- Specify the model
140- -----------------
142+ *******************
143+ Specify the model
144+ *******************
141145
142146By specifying a model in the chat options, you can easily switch between different AI
143147models available in the ecosystem. For a full list of supported models, please refer to
@@ -228,8 +232,9 @@ the :doc:`available models list <ref-models>`.
228232 }
229233 }
230234
231- Check for errors
232- ----------------
235+ ******************
236+ Check for errors
237+ ******************
233238
234239Instead of throwing exceptions that might crash your application, Flower Intelligence
235240returns a response object that includes a dedicated :doc: `Failure
@@ -329,8 +334,9 @@ application stability.
329334 }
330335 }
331336
332- Stream Responses
333- ----------------
337+ ******************
338+ Stream Responses
339+ ******************
334340
335341By enabling the stream option and providing a callback function, you can watch the AI’s
336342response as it is being generated. This approach is ideal for interactive applications,
@@ -444,8 +450,9 @@ available. The callback function must accept an argument of type :doc:`StreamEve
444450 }
445451 }
446452
447- Use Roles
448- ---------
453+ ***********
454+ Use Roles
455+ ***********
449456
450457Instead of simply sending a single string, you can provide an array of :doc: `messages
451458<ts-api-ref/interfaces/Message>` with designated roles such as ``system `` and ``user ``.
@@ -571,8 +578,9 @@ ensuring that the assistant responds in a way that’s tailored to the scenario.
571578 }
572579 }
573580
574- Handle history
575- --------------
581+ ****************
582+ Handle history
583+ ****************
576584
577585In this example, the conversation history is maintained in an array that includes both
578586system and user messages. Each time a new message is sent, it is appended to the
@@ -751,8 +759,9 @@ interactions, resulting in a more coherent and dynamic conversation.
751759 chatWithHistory("Why is the sky blue?")
752760 }
753761
754- Pre-loading the model
755- ---------------------
762+ ***********************
763+ Pre-loading the model
764+ ***********************
756765
757766You might have noticed that the first time you run inference on a given model, you'll
758767have to wait longer for it to complete compared to the second time you call the model.
@@ -889,8 +898,9 @@ that takes a :doc:`Progress <ts-api-ref/interfaces/Progress>` object as input:
889898 <https://github.com/adap/flower/tree/main/intelligence/ts/examples>` _ for more
890899 information!
891900
892- Flower Confidential Remote Compute
893- ----------------------------------
901+ ************************************
902+ Flower Confidential Remote Compute
903+ ************************************
894904
895905Flower Intelligence prioritizes local inference, but also allows to privately handoff
896906the compute to the Flower Confidential Remote Compute service when local resources are
@@ -1038,8 +1048,9 @@ You will also need to provide a valid API key via the ``apiKey`` attribute.
10381048 }
10391049 }
10401050
1041- Embedding
1042- -------- -
1051+ ***********
1052+ Embedding
1053+ ***********
10431054
10441055.. warning ::
10451056
@@ -1115,8 +1126,9 @@ You will need to enable ``remoteHandoff`` and to provide a valid API key via the
11151126
11161127 await main ().then ().catch ();
11171128
1118- How- to guides
1119- ------------ -
1129+ ***************
1130+ How- to guides
1131+ ***************
11201132
11211133Below you will find some simple guides to get you started.
11221134
@@ -1127,8 +1139,9 @@ Below you will find some simple guides to get you started.
11271139
11281140 how- to- use- crc .rst
11291141
1130- References
1131- ----------
1142+ ************
1143+ References
1144+ ************
11321145
11331146Information- oriented API reference and other reference material.
11341147
@@ -1143,8 +1156,9 @@ Information-oriented API reference and other reference material.
11431156 swift- api- ref/ index
11441157 kt- api- ref/ index
11451158
1146- Contributor guides
1147- ------------------
1159+ ********************
1160+ Contributor guides
1161+ ********************
11481162
11491163If you are interested in contributing or playing around with the source code.
11501164
@@ -1155,8 +1169,9 @@ If you are interested in contributing or playing around with the source code.
11551169
11561170 contributor- how- to- build- from- source .rst
11571171
1158- Join the Flower Community
1159- ------------------------ -
1172+ ***************************
1173+ Join the Flower Community
1174+ ***************************
11601175
11611176The Flower Community is growing quickly - we' re a friendly group of researchers,
11621177engineers, students, professionals, academics, and other enthusiasts.
0 commit comments