[Refactor] Converge Pipeline and App classes (#1021)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2023-12-29 16:52:41 +05:30
committed by GitHub
parent c0aafd38c9
commit a926bcc640
91 changed files with 646 additions and 875 deletions

View File

@@ -54,7 +54,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\"\n",
"os.environ[\"ANTHROPIC_API_KEY\"] = \"xxx\""

View File

@@ -44,7 +44,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_TYPE\"] = \"azure\"\n",
"os.environ[\"OPENAI_API_BASE\"] = \"https://xxx.openai.azure.com/\"\n",
@@ -143,7 +143,7 @@
"source": [
"while(True):\n",
" question = input(\"Enter question: \")\n",
" if question in ['q', 'exit', 'quit']\n",
" if question in ['q', 'exit', 'quit']:\n",
" break\n",
" answer = app.query(question)\n",
" print(answer)"

View File

@@ -49,7 +49,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\""
]

View File

@@ -53,7 +53,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\"\n",
"os.environ[\"COHERE_API_KEY\"] = \"xxx\""

View File

@@ -49,7 +49,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\""
]

View File

@@ -33,7 +33,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"from embedchain.config import AppConfig\n",
"\n",
"\n",

View File

@@ -7,7 +7,7 @@
"metadata": {},
"outputs": [],
"source": [
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"embedchain_docs_bot = App()"
]

View File

@@ -52,7 +52,7 @@
},
"outputs": [],
"source": [
"from embedchain import Pipeline as App"
"from embedchain import App"
]
},
{

View File

@@ -54,7 +54,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"HUGGINGFACE_ACCESS_TOKEN\"] = \"hf_xxx\""
]

View File

@@ -54,7 +54,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\"\n",
"os.environ[\"JINACHAT_API_KEY\"] = \"xxx\""

View File

@@ -53,7 +53,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\"\n",
"os.environ[\"REPLICATE_API_TOKEN\"] = \"xxx\""

View File

@@ -92,7 +92,7 @@
}
],
"source": [
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"app = App.from_config(config_path=\"ollama.yaml\")"
]
},

View File

@@ -54,7 +54,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\""
]
@@ -80,7 +80,7 @@
"llm:\n",
" provider: openai\n",
" config:\n",
" model: gpt-35-turbo\n",
" model: gpt-3.5-turbo\n",
" temperature: 0.5\n",
" max_tokens: 1000\n",
" top_p: 1\n",

View File

@@ -49,7 +49,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\""
]

View File

@@ -49,7 +49,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\"\n",
"os.environ[\"PINECONE_API_KEY\"] = \"xxx\"\n",

View File

@@ -53,7 +53,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"\"\n",
"os.environ[\"TOGETHER_API_KEY\"] = \"\""

View File

@@ -53,7 +53,7 @@
"outputs": [],
"source": [
"import os\n",
"from embedchain import Pipeline as App\n",
"from embedchain import App\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-xxx\""
]