Skip to content

Commit 2ecb726

Browse files
Merge pull request #44 from intelligentnode/release-0.0.2
Release 0.0.2
2 parents 4e18ac6 + a0f715c commit 2ecb726

3 files changed

Lines changed: 81 additions & 22 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Intelliserver is a microservice providing unified access to multiple AI models,
2626
- **Semantic Search**: leverage context-aware semantic search capabilities across text documents.
2727
- **Image Generation**: generate quality images based on described contexts using diffusion image models.
2828
- **Chat Context**: get the relevant messages for the chatbot conversation.
29+
- **Parsers**: convert documents to text such as PDF and word.
2930

3031
## Installation
3132

intelliserver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intelliserver",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www"

postman/Intellinode Server.postman_collection.json

Lines changed: 79 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"info": {
3-
"_postman_id": "76e5b9e8-2652-47a4-89df-8f1350228f54",
3+
"_postman_id": "a36cc10c-bc9d-4682-a8c8-6e345ae917b8",
44
"name": "Intellinode Server",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6-
"_exporter_id": "14588927"
6+
"_exporter_id": "8207010"
77
},
88
"item": [
99
{
@@ -48,7 +48,7 @@
4848
],
4949
"body": {
5050
"mode": "raw",
51-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"model\": \"davinci-002\",\n \"prompt\": \"Summarize the plot of the Inception movie in two sentences\",\n \"max_tokens\": 50,\n \"n\": 1,\n \"stop\": \"<stop>\",\n \"temperature\": 0.7\n } \n}",
51+
"raw": "{\n \"api_key\": \"{{openai_key}}\", \n \"params\":{\n \"model\": \"davinci-002\",\n \"prompt\": \"Summarize the plot of the Inception movie in two sentences\",\n \"max_tokens\": 50,\n \"n\": 1,\n \"stop\": \"<stop>\",\n \"temperature\": 0.7\n } \n}",
5252
"options": {
5353
"raw": {
5454
"language": "json"
@@ -81,7 +81,7 @@
8181
],
8282
"body": {
8383
"mode": "raw",
84-
"raw": "{\n \"api_key\": \"\",\n \"params\":{\n \"model\": \"gpt-3.5-turbo\",\n \"stream\": false,\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Generate a product description for black and white standing desk.\"\n }\n ],\n \"max_tokens\": 100,\n \"temperature\": 0.8\n }\n}",
84+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"params\":{\n \"model\": \"gpt-3.5-turbo\",\n \"stream\": false,\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"Generate a product description for black and white standing desk.\"\n }\n ],\n \"max_tokens\": 100,\n \"temperature\": 0.8\n }\n}",
8585
"options": {
8686
"raw": {
8787
"language": "json"
@@ -114,7 +114,7 @@
114114
],
115115
"body": {
116116
"mode": "raw",
117-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"input\": [\"IntelliNode provide lightning-fast access to the latest deep learning models\", \"Hello IntelliNode\"],\n \"model\": \"text-embedding-ada-002\"\n } \n}",
117+
"raw": "{\n \"api_key\": \"{{openai_key}}\", \n \"params\":{\n \"input\": [\"IntelliNode provide lightning-fast access to the latest deep learning models\", \"Hello IntelliNode\"],\n \"model\": \"text-embedding-ada-002\"\n } \n}",
118118
"options": {
119119
"raw": {
120120
"language": "json"
@@ -147,7 +147,7 @@
147147
],
148148
"body": {
149149
"mode": "raw",
150-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"prompt\": \"gaming chair\", \n \"n\": 1,\n \"size\": \"256x256\"\n } \n}",
150+
"raw": "{\n \"api_key\": \"{{openai_key}}\", \n \"params\":{\n \"prompt\": \"gaming chair\", \n \"n\": 1,\n \"size\": \"256x256\"\n } \n}",
151151
"options": {
152152
"raw": {
153153
"language": "json"
@@ -185,7 +185,7 @@
185185
],
186186
"body": {
187187
"mode": "raw",
188-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"text_prompts\": [\n { \n \"text\": \"red apple\", \n \"weight\": 0.5 \n }\n ],\n \"cfg_scale\": 7,\n \"steps\": 50\n }\n}",
188+
"raw": "{\n \"api_key\": \"{{stability_key}}\", \n \"params\":{\n \"text_prompts\": [\n { \n \"text\": \"red apple\", \n \"weight\": 0.5 \n }\n ],\n \"cfg_scale\": 7,\n \"steps\": 50\n }\n}",
189189
"options": {
190190
"raw": {
191191
"language": "json"
@@ -231,7 +231,7 @@
231231
},
232232
{
233233
"key": "api_key",
234-
"value": "",
234+
"value": "{{stability_key}}",
235235
"type": "text"
236236
}
237237
]
@@ -267,7 +267,7 @@
267267
],
268268
"body": {
269269
"mode": "raw",
270-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"model\": \"command\",\n \"prompt\": \"Write a blog outline for a blog titled The Art of Effective Communication\",\n \"temperature\": 0.7,\n \"max_tokens\": 200\n } \n}",
270+
"raw": "{\n \"api_key\": \"{{cohere_key}}\", \n \"params\":{\n \"model\": \"command\",\n \"prompt\": \"Write a blog outline for a blog titled The Art of Effective Communication\",\n \"temperature\": 0.7,\n \"max_tokens\": 200\n } \n}",
271271
"options": {
272272
"raw": {
273273
"language": "json"
@@ -300,7 +300,7 @@
300300
],
301301
"body": {
302302
"mode": "raw",
303-
"raw": "{\n \"api_key\": \"\", \n \"params\": {\n \"texts\": [\n \"Hello from Cohere!\",\n \"Hallo von Cohere!\",\n \"您好,来自 Cohere!\"\n ],\n \"model\": \"embed-multilingual-v2.0\",\n \"truncate\": \"END\"\n } \n}",
303+
"raw": "{\n \"api_key\": \"{{cohere_key}}\", \n \"params\": {\n \"texts\": [\n \"Hello from Cohere!\",\n \"Hallo von Cohere!\",\n \"您好,来自 Cohere!\"\n ],\n \"model\": \"embed-multilingual-v2.0\",\n \"truncate\": \"END\"\n } \n}",
304304
"options": {
305305
"raw": {
306306
"language": "json"
@@ -338,7 +338,7 @@
338338
],
339339
"body": {
340340
"mode": "raw",
341-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"model_tag\": \"13b-chat\",\n \"input_data\": {\n \"version\": \"d5da4236b006f967ceb7da037be9cfc3924b20d21fed88e1e94f19d56e2d3111\",\n \"input\": {\n \"prompt\": \"Translate the following English text to French: 'Good morning'\",\n \"max_new_tokens\": 60,\n \"temperature\": 0.5,\n \"debug\": false\n }\n }\n } \n}",
341+
"raw": "{\n \"api_key\": \"{{replicate_key}}\", \n \"params\":{\n \"model_tag\": \"13b-chat\",\n \"input_data\": {\n \"version\": \"d5da4236b006f967ceb7da037be9cfc3924b20d21fed88e1e94f19d56e2d3111\",\n \"input\": {\n \"prompt\": \"Translate the following English text to French: 'Good morning'\",\n \"max_new_tokens\": 60,\n \"temperature\": 0.5,\n \"debug\": false\n }\n }\n } \n}",
342342
"options": {
343343
"raw": {
344344
"language": "json"
@@ -371,7 +371,7 @@
371371
],
372372
"body": {
373373
"mode": "raw",
374-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"prediction_id\": \"gimfgb3beqq4tgn4ckv7gltvje\"\n } \n}",
374+
"raw": "{\n \"api_key\": \"{{replicate_key}}\", \n \"params\":{\n \"prediction_id\": \"gimfgb3beqq4tgn4ckv7gltvje\"\n } \n}",
375375
"options": {
376376
"raw": {
377377
"language": "json"
@@ -409,7 +409,7 @@
409409
],
410410
"body": {
411411
"mode": "raw",
412-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"model_id\": \"facebook/bart-large-cnn\",\n \"data\": {\n \"inputs\": \"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building...\"\n }\n } \n}",
412+
"raw": "{\n \"api_key\": \"{{huggin_key}}\", \n \"params\":{\n \"model_id\": \"facebook/bart-large-cnn\",\n \"data\": {\n \"inputs\": \"The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building...\"\n }\n } \n}",
413413
"options": {
414414
"raw": {
415415
"language": "json"
@@ -442,7 +442,7 @@
442442
],
443443
"body": {
444444
"mode": "raw",
445-
"raw": "{\n \"api_key\": \"\", \n \"params\":{\n \"model_id\": \"stabilityai/stable-diffusion-2\",\n \"data\": {\n \"inputs\": \"a photo of an astronaut riding a horse on mars\",\n \"parameters\": {\n \"negative_prompt\": \"blurry\"\n }\n }\n } \n}",
445+
"raw": "{\n \"api_key\": \"{{huggin_key}}\", \n \"params\":{\n \"model_id\": \"stabilityai/stable-diffusion-2\",\n \"data\": {\n \"inputs\": \"a photo of an astronaut riding a horse on mars\",\n \"parameters\": {\n \"negative_prompt\": \"blurry\"\n }\n }\n } \n}",
446446
"options": {
447447
"raw": {
448448
"language": "json"
@@ -548,7 +548,7 @@
548548
],
549549
"body": {
550550
"mode": "raw",
551-
"raw": "{\n \"api_key\": \"\",\n \"model\": \"gpt4\",\n \"provider\": \"openai\",\n \"input\": {\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
551+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"model\": \"gpt4\",\n \"provider\": \"openai\",\n \"input\": {\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
552552
"options": {
553553
"raw": {
554554
"language": "json"
@@ -581,7 +581,7 @@
581581
],
582582
"body": {
583583
"mode": "raw",
584-
"raw": "{\n \"api_key\": \"\",\n \"model\": \"gpt4\",\n \"provider\": \"openai\",\n \"input\": {\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
584+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"model\": \"gpt4\",\n \"provider\": \"openai\",\n \"input\": {\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
585585
"options": {
586586
"raw": {
587587
"language": "json"
@@ -614,7 +614,7 @@
614614
],
615615
"body": {
616616
"mode": "raw",
617-
"raw": "{\n \"api_key\": \"\",\n \"provider\": \"replicate\",\n \"input\": {\n \"model\": \"13b-chat\",\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
617+
"raw": "{\n \"api_key\": \"{{replicate_key}}\",\n \"provider\": \"replicate\",\n \"input\": {\n \"model\": \"13b-chat\",\n \"system\": \"You are a helpful assistant.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"recommend a vegetarian dish for dinner\"\n }\n ]\n }\n}",
618618
"options": {
619619
"raw": {
620620
"language": "json"
@@ -652,7 +652,7 @@
652652
],
653653
"body": {
654654
"mode": "raw",
655-
"raw": "{\n \"api_key\": \"\",\n \"provider\": \"openai\",\n \"input\": {\n \"userMessage\": \"recommend a vegetarian dish for dinner\",\n \"historyMessages\": [\"Good morning\", \"Dinner time\", \"How can I help you?\", \"Hello\"],\n \"n\": 3\n }\n}",
655+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"provider\": \"openai\",\n \"input\": {\n \"userMessage\": \"recommend a vegetarian dish for dinner\",\n \"historyMessages\": [\"Good morning\", \"Dinner time\", \"How can I help you?\", \"Hello\"],\n \"n\": 3\n }\n}",
656656
"options": {
657657
"raw": {
658658
"language": "json"
@@ -685,7 +685,7 @@
685685
],
686686
"body": {
687687
"mode": "raw",
688-
"raw": "{\n \"api_key\": \"\",\n \"provider\": \"openai\",\n \"input\": {\n \"userMessage\": \"recommend a vegetarian dish for dinner\",\n \"historyMessages\": [\n {\"role\": \"user\", \"content\": \"Good morning\"},\n {\"role\": \"user\", \"content\": \"Dinner time\"},\n {\"role\": \"assistant\", \"content\": \"How can I help you?\"},\n {\"role\": \"user\", \"content\": \"Hello\"}\n ],\n \"n\": 3\n }\n}",
688+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"provider\": \"openai\",\n \"input\": {\n \"userMessage\": \"recommend a vegetarian dish for dinner\",\n \"historyMessages\": [\n {\"role\": \"user\", \"content\": \"Good morning\"},\n {\"role\": \"user\", \"content\": \"Dinner time\"},\n {\"role\": \"assistant\", \"content\": \"How can I help you?\"},\n {\"role\": \"user\", \"content\": \"Hello\"}\n ],\n \"n\": 3\n }\n}",
689689
"options": {
690690
"raw": {
691691
"language": "json"
@@ -720,7 +720,40 @@
720720
],
721721
"body": {
722722
"mode": "raw",
723-
"raw": "{\n \"api_key\": \"\",\n \"provider\": \"openai\",\n \"input\": {\n \"pivot_item\": \"Hello from OpenAI!\",\n \"search_array\": [\"Greetings from OpenAI!\", \"Bonjour de OpenAI!\", \"Hola desde OpenAI!\"],\n \"number_of_matches\": 2\n }\n}",
723+
"raw": "{\n \"api_key\": \"{{openai_key}}\",\n \"provider\": \"openai\",\n \"input\": {\n \"pivot_item\": \"Hello from OpenAI!\",\n \"search_array\": [\"Greetings from OpenAI!\", \"Bonjour de OpenAI!\", \"Hola desde OpenAI!\"],\n \"number_of_matches\": 2\n }\n}",
724+
"options": {
725+
"raw": {
726+
"language": "json"
727+
}
728+
}
729+
},
730+
"url": {
731+
"raw": "{{url}}/semanticsearch/search",
732+
"host": [
733+
"{{url}}"
734+
],
735+
"path": [
736+
"semanticsearch",
737+
"search"
738+
]
739+
}
740+
},
741+
"response": []
742+
},
743+
{
744+
"name": "semantic-search-cohere",
745+
"request": {
746+
"method": "POST",
747+
"header": [
748+
{
749+
"key": "X-API-KEY",
750+
"value": "root",
751+
"type": "text"
752+
}
753+
],
754+
"body": {
755+
"mode": "raw",
756+
"raw": "{\n \"api_key\": \"{{cohere_key}}\",\n \"provider\": \"cohere\",\n \"input\": {\n \"pivot_item\": \"Hello from OpenAI!\",\n \"search_array\": [\"Greetings from OpenAI!\", \"Bonjour de OpenAI!\", \"Hola desde OpenAI!\"],\n \"number_of_matches\": 2\n }\n}",
724757
"options": {
725758
"raw": {
726759
"language": "json"
@@ -753,7 +786,7 @@
753786
],
754787
"body": {
755788
"mode": "raw",
756-
"raw": "{\n \"userInput\": \"Explain the process of photosynthesis in simple terms.\",\n \"targetAnswers\": [\n \"Photosynthesis is the process where green plants use sunlight to turn carbon dioxide and water into glucose and oxygen.\",\n \"Photosynthesis is how plants make their own food. They take in water and carbon dioxide, use the energy from sunlight to transform them into glucose and oxygen.\",\n \"In simple terms, photosynthesis is like cooking for plants but instead of a stove, they use sunlight. They mix water and carbon dioxide with the sunlight to create glucose, which is their food, and also produce oxygen.\"\n ],\n \"semantic\": {\n \"api_key\": \"\",\n \"provider\": \"openai\"\n },\n \"evaluate\": [\n {\n \"apiKey\": \"\",\n \"provider\": \"replicate\",\n \"type\": \"chat\",\n \"model\": \"13b-chat\",\n \"maxTokens\": 50\n },\n {\n \"apiKey\": \"\",\n \"provider\": \"cohere\",\n \"type\": \"completion\",\n \"model\": \"command\",\n \"maxTokens\": 50\n },\n {\n \"apiKey\": \"\",\n \"provider\": \"openai\",\n \"type\": \"chat\",\n \"model\": \"gpt-3.5-turbo\",\n \"maxTokens\": 50,\n \"temperature\": 0.7\n }\n ]\n}",
789+
"raw": "{\n \"userInput\": \"Explain the process of photosynthesis in simple terms.\",\n \"targetAnswers\": [\n \"Photosynthesis is the process where green plants use sunlight to turn carbon dioxide and water into glucose and oxygen.\",\n \"Photosynthesis is how plants make their own food. They take in water and carbon dioxide, use the energy from sunlight to transform them into glucose and oxygen.\",\n \"In simple terms, photosynthesis is like cooking for plants but instead of a stove, they use sunlight. They mix water and carbon dioxide with the sunlight to create glucose, which is their food, and also produce oxygen.\"\n ],\n \"semantic\": {\n \"api_key\": \"{{openai_key}}\",\n \"provider\": \"openai\"\n },\n \"evaluate\": [\n {\n \"apiKey\": \"{{replicate_key}}\",\n \"provider\": \"replicate\",\n \"type\": \"chat\",\n \"model\": \"13b-chat\",\n \"maxTokens\": 50\n },\n {\n \"apiKey\": \"{{cohere_key}}\",\n \"provider\": \"cohere\",\n \"type\": \"completion\",\n \"model\": \"command\",\n \"maxTokens\": 50\n },\n {\n \"apiKey\": \"{{openai_key}}\",\n \"provider\": \"openai\",\n \"type\": \"chat\",\n \"model\": \"gpt-3.5-turbo\",\n \"maxTokens\": 50,\n \"temperature\": 0.7\n }\n ]\n}",
757790
"options": {
758791
"raw": {
759792
"language": "json"
@@ -884,6 +917,31 @@
884917
"key": "server_url",
885918
"value": "",
886919
"type": "string"
920+
},
921+
{
922+
"key": "openai_key",
923+
"value": "",
924+
"type": "string"
925+
},
926+
{
927+
"key": "cohere_key",
928+
"value": "",
929+
"type": "string"
930+
},
931+
{
932+
"key": "replicate_key",
933+
"value": "",
934+
"type": "string"
935+
},
936+
{
937+
"key": "stability_key",
938+
"value": "",
939+
"type": "string"
940+
},
941+
{
942+
"key": "huggin_key",
943+
"value": "",
944+
"type": "string"
887945
}
888946
]
889947
}

0 commit comments

Comments
 (0)