|
| 1 | +name: "Chatbot with Internet" |
| 2 | +slug: "chatbot-with-internet" |
| 3 | +category_slugs: ["chatbot"] |
| 4 | +description: "A chatbot that can answer user's questions based on your own content. Searches internet if it cannot find answer in your data." |
| 5 | +provider_slug: "promptly" |
| 6 | +pages: |
| 7 | + - title: "Data" |
| 8 | + description: "Provide data for your Chatbot" |
| 9 | + input_fields: |
| 10 | + - name: "datasource" |
| 11 | + title: "Datasource" |
| 12 | + type: "datasource" |
| 13 | + description: "Select the data for the chatbot to answer from. Click on the icon to the right to add new data" |
| 14 | + path: "processors[0].config.datasource" |
| 15 | + - name: "description" |
| 16 | + title: "Datasource Description" |
| 17 | + type: "textarea" |
| 18 | + description: "Describe the datasource" |
| 19 | + path: "processors[0].description" |
| 20 | + default: "Responds to questions about Promptly" |
| 21 | +app: |
| 22 | + name: "Chatbot with Internet" |
| 23 | + slug: "chatbot-with-internet" |
| 24 | + description: "A chatbot that can answer user's questions based on your own content. Searches internet if it cannot find answer in your data" |
| 25 | + type_slug: "agent" |
| 26 | + input_fields: |
| 27 | + - name: "task" |
| 28 | + title: "Question" |
| 29 | + type: "string" |
| 30 | + description: "Enter your question here" |
| 31 | + output_template: |
| 32 | + markdown: | |
| 33 | + {{agent}} |
| 34 | + processors: |
| 35 | + - id: "_inputs1" |
| 36 | + name: "Datasource" |
| 37 | + description: "Datasource to search for answers" |
| 38 | + provider_slug: "promptly" |
| 39 | + processor_slug: "text_chat" |
| 40 | + input: { "question": "" } |
| 41 | + config: |
| 42 | + { |
| 43 | + "k": 8, |
| 44 | + "model": "gpt-3.5-turbo", |
| 45 | + "datasource": [], |
| 46 | + "temperature": 0.7, |
| 47 | + "instructions": "You are a chatbot that uses the provided context to answer the user's question.\nIf you cannot answer the question based on the provided context, say you don't know the answer.\nNo answer should go out of the provided input. If the provided input is empty, return saying you don't know the answer.\nKeep the answers terse.", |
| 48 | + "chat_history_limit": 20, |
| 49 | + "system_message_prefix": "You are a helpful chat assistant", |
| 50 | + "use_azure_if_available": true, |
| 51 | + "chat_history_in_doc_search": 0, |
| 52 | + } |
| 53 | + output_template: |
| 54 | + markdown: | |
| 55 | + {{_inputs1.answer}} |
| 56 | + - id: _inputs2 |
| 57 | + name: Web Search |
| 58 | + description: Search the web for answers |
| 59 | + provider_slug: promptly |
| 60 | + processor_slug: web_search |
| 61 | + config: |
| 62 | + search_engine: Google |
| 63 | + k: 5 |
| 64 | + input: |
| 65 | + query: "" |
| 66 | + output_template: |
| 67 | + markdown: | |
| 68 | + {% for result in _inputs2.results %} |
| 69 | +
|
| 70 | + Result: {{ result.text }} |
| 71 | +
|
| 72 | + URL: {{ result.source }} |
| 73 | +
|
| 74 | + {% endfor %} |
0 commit comments