@promptbook/remote-client 0.46.0-0 → 0.46.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -91
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Library to supercharge your use of large language models
4
4
 
5
- <!--Badges-->
6
- <!--⚠️WARNING: This section was generated by https://github.com/hejny/batch-project-editor/blob/main/src/workflows/800-badges/badges.ts so every manual change will be overwritten.-->
5
+
6
+
7
7
 
8
8
  [![License of 📖 Prompt book](https://img.shields.io/github/license/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/blob/main/LICENSE)
9
9
  [![Known Vulnerabilities](https://snyk.io/test/github/webgptorg/promptbook/badge.svg)](https://snyk.io/test/github/webgptorg/promptbook)
10
10
  [![Issues](https://img.shields.io/github/issues/webgptorg/promptbook.svg?style=flat)](https://github.com/webgptorg/promptbook/issues)
11
11
  [![Socket Badge](https://socket.dev/api/badge/npm/package/@promptbook/remote-client)](https://socket.dev/npm/package/@promptbook/remote-client)
12
12
 
13
- <!--/Badges-->
13
+
14
14
 
15
15
  ## 📦 Package `@promptbook/remote-client`
16
16
 
@@ -23,16 +23,13 @@ To install this package, run:
23
23
  npm i @promptbook/remote-client
24
24
  ```
25
25
 
26
- <!-- TODO: Sample of use + interlink server and client -->
26
+
27
27
 
28
28
  ---
29
29
 
30
30
  Rest of the documentation is common for **entire promptbook ecosystem**:
31
31
 
32
- <!--
33
- TODO: Probbably remove this section only in packages
34
- > ⚠ Warning: This library is still in early development.
35
- -->
32
+
36
33
 
37
34
  ## 🤍 Whitepaper
38
35
 
@@ -75,13 +72,13 @@ In any of these situations, but especially in (3), the Promptbook library can ma
75
72
  - Multiple promptbooks forms a library which will become a **part of your application codebase**.
76
73
  - Theese promptbooks are designed such as they **can be written by non-programmers**.
77
74
 
78
- <!-- TODO: [🧠] Make some more clear escaping -->
75
+
79
76
 
80
77
  ### Sample:
81
78
 
82
79
  File `write-website-content.ptbk.md`:
83
80
 
84
- <!------------------------[ Sample: ]------------------------>
81
+
85
82
 
86
83
  > # 🌍 Create website content
87
84
  >
@@ -252,7 +249,7 @@ File `write-website-content.ptbk.md`:
252
249
  >
253
250
  > `-> {content}`
254
251
 
255
- <!------------------------[ /Sample ]------------------------>
252
+
256
253
 
257
254
  Following is the scheme how the promptbook above is executed:
258
255
 
@@ -314,10 +311,11 @@ npm i ptbk
314
311
 
315
312
  Or you can install them separately:
316
313
 
317
- <!--[🔠]-->
318
314
 
319
- <!-- Add all new -->
320
315
 
316
+
317
+ - ⭐ **[ptbk](https://www.npmjs.com/package/@promptbook/core)** - Bundle of all packages, when you want to install everything and you don't care about the size
318
+ - **[promptbook](https://www.npmjs.com/package/@promptbook/core)** - Just alias for `ptbk`
321
319
  - **[@promptbook/core](https://www.npmjs.com/package/@promptbook/core)** - Core of the library, it contains the main logic for promptbooks
322
320
  - ⭐ **[@promptbook/utils](https://www.npmjs.com/package/@promptbook/utils)** - Utility functions used in the library but also useful for individual use in preprocessing and postprocessing LLM inputs and outputs
323
321
  - _(Not finished)_ **[@promptbook/wizzard](https://www.npmjs.com/package/@promptbook/wizzard)** - Wizard for creating+running promptbooks in single line
@@ -496,7 +494,7 @@ There are [postprocessing functions](#postprocessing-functions) that can be used
496
494
 
497
495
  - _(Not implemented yet)_ `ConsoleInterfaceTools` is a wrapper around `readline` module that interacts with the user via console.
498
496
  - `SimplePromptInterfaceTools` is a wrapper around `window.prompt` synchronous function that interacts with the user via browser prompt. It is used for testing and mocking **NOT intended to use in the production** due to its synchronous nature.
499
- - `CallbackInterfaceTools` delagates the user interaction to a async callback function. You need to provide your own implementation of this callback function and its bind to UI. <!-- <- TODO: Provide here a way how to do it with some our plugin -->
497
+ - `CallbackInterfaceTools` delagates the user interaction to a async callback function. You need to provide your own implementation of this callback function and its bind to UI.
500
498
 
501
499
  ### Executor
502
500
 
@@ -566,10 +564,7 @@ There are two types of expectations which are not strictly symmetrical:
566
564
 
567
565
  Look at [expectations.ptbk.md](samples/templates/45-expectations.ptbk.md) and [expect-json.ptbk.md](samples/templates/45-expect-json.ptbk.md) samples for more.
568
566
 
569
- <!--
570
- ### New
571
- [🥻] Insert here when making new command
572
- -->
567
+
573
568
 
574
569
  ### Execution report
575
570
 
@@ -577,7 +572,7 @@ Execution report is a simple object or markdown that contains information about
577
572
 
578
573
  [See the example of such a report](/samples/templates/50-advanced.report.md)
579
574
 
580
- <!-- TODO: Write more -->
575
+
581
576
 
582
577
  ### Remote server
583
578
 
@@ -588,23 +583,7 @@ This is useful to make all logic on browser side but not expose your API keys or
588
583
 
589
584
  ## 👨‍💻 Usage and integration _(for developers)_
590
585
 
591
- <!--
592
-
593
- TODO: [🧙‍♂️]
594
-
595
- ### 🧙‍♂️ Using wizzard
596
-
597
- First you need to install this library:
598
-
599
- ```bash
600
- npm install --save @promptbook/wizzard
601
- ```
602
-
603
- > TODO: !! Write the Wizzard sample
604
-
605
- [Usage samples](./samples/usage/)
606
586
 
607
- -->
608
587
 
609
588
  ### 🔌 Usage in Typescript / Javascript
610
589
 
@@ -629,11 +608,11 @@ npm install --save @promptbook/wizzard
629
608
 
630
609
  ## 🐜 Known issues
631
610
 
632
- <!-- TODO: -->
611
+
633
612
 
634
613
  ## 🧼 Intentionally not implemented features
635
614
 
636
- <!-- TODO: -->
615
+
637
616
 
638
617
  ## ❔ FAQ
639
618
 
@@ -649,42 +628,17 @@ Langchain is primarily aimed at ML developers working in Python. This library is
649
628
 
650
629
  We are considering creating a bridge/converter between these two libraries.
651
630
 
652
- <!--
653
631
 
654
- ==========
655
- Include:
656
- - Langchain is the python library and JavaScript is on second place
657
- - Langchain primarily focused on making templates, not on combining templates into larger structures
658
- - at the language level it distinguishes between chat and completion, I need to mix the two into one template pipeline
659
- - for a non-programmer it's quite hard to work with such a thing and write templates - I would much prefer a system that allows non-technical people to write templates (of which there are many more on the market than free pythonists)
660
- - The focus of promptbooks is primarily on building user applications, not the data processing, training or autogpt.
661
- -->
662
632
 
663
633
  ### Promptbooks vs. OpenAI`s GPTs
664
634
 
665
635
  GPTs are chat assistants that can be assigned to specific tasks and materials. But they are still chat assistants. Promptbooks are a way to orchestrate many more predefined tasks to have much tighter control over the process. Promptbooks are not a good technology for creating human-like chatbots, GPTs are not a good technology for creating outputs with specific requirements.
666
636
 
667
- <!--
668
- TODO:
669
- ### Promptbooks vs. Semantic Kernel
670
-
671
-
672
- -->
673
-
674
- <!--
675
- TODO: !
676
- ### Promptbooks vs. Langtail
677
637
 
678
638
 
679
- -->
680
639
 
681
- <!--
682
- TODO:
683
- ### Promptbooks vs. Evidentally AI
684
640
 
685
- Logging and monitoring
686
641
 
687
- -->
688
642
 
689
643
  ### Where should I store my promptbooks?
690
644
 
@@ -706,33 +660,9 @@ In large language models, you will get better results if you have prompts in the
706
660
 
707
661
  The best way to manage this is to have suffixed promptbooks like `write-website-content.en.ptbk.md` and `write-website-content.cs.ptbk.md` for each supported language.
708
662
 
709
- <!--
710
- TODO: (Maybe)
711
- ### Why you need to explicitly specify input and output parameters?
712
- -->
713
-
714
- <!--
715
-
716
-
717
-
718
- !
719
663
 
720
664
 
721
665
 
722
- unit testing
723
-
724
- escaping
725
-
726
- how i get block into prompt
727
-
728
-
729
- ## 🚷 Limitations
730
-
731
- function calling
732
- system message
733
- iterations
734
-
735
- -->
736
666
 
737
667
  ## ⌚ Changelog
738
668
 
@@ -742,13 +672,11 @@ See [CHANGELOG.md](./CHANGELOG.md)
742
672
 
743
673
  <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol Hejný</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
744
674
 
745
- <!--Contributing-->
746
- <!--⚠️WARNING: This section was generated by https://github.com/hejny/batch-project-editor/blob/main/src/workflows/810-contributing/contributing.ts so every manual change will be overwritten.-->
675
+
676
+
747
677
 
748
678
  ## 🖋️ Contributing
749
679
 
750
680
  I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [☕ buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
751
681
 
752
- You can also ⭐ star the promptbook package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
753
-
754
- <!--/Contributing-->
682
+ You can also ⭐ star the promptbook package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-client",
3
- "version": "0.46.0-0",
3
+ "version": "0.46.0-1",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "socket.io-client": "4.7.2"
38
38
  },
39
39
  "peerDependencies": {
40
- "@promptbook/core": "0.46.0-0"
40
+ "@promptbook/core": "0.46.0-1"
41
41
  },
42
42
  "main": "./umd/index.umd.js",
43
43
  "module": "./esm/index.es.js",