[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
+1 -1
View File
@@ -2,7 +2,7 @@ import os
import chainlit as cl
from embedchain import Pipeline as App
from embedchain import App
os.environ["OPENAI_API_KEY"] = "sk-xxx"
+1 -1
View File
@@ -6,7 +6,7 @@ import threading
import streamlit as st
from embedchain import Pipeline as App
from embedchain import App
from embedchain.config import BaseLlmConfig
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
generate)
+1 -1
View File
@@ -2,7 +2,7 @@ import os
import streamlit as st
from embedchain import Pipeline as App
from embedchain import App
@st.cache_resource
+1 -1
View File
@@ -9,7 +9,7 @@ from services import get_app, get_apps, remove_app, save_app
from sqlalchemy.orm import Session
from utils import generate_error_message_for_api_keys
from embedchain import Pipeline as App
from embedchain import App
from embedchain.client import Client
Base.metadata.create_all(bind=engine)
+1 -1
View File
@@ -6,7 +6,7 @@ from io import StringIO
import requests
import streamlit as st
from embedchain import Pipeline as App
from embedchain import App
from embedchain.config import BaseLlmConfig
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
generate)
+2 -2
View File
@@ -2,7 +2,7 @@ import queue
import streamlit as st
from embedchain import Pipeline as App
from embedchain import App
from embedchain.config import BaseLlmConfig
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
generate)
@@ -35,7 +35,7 @@ with st.expander(":grey[Want to create your own Unacademy UPSC AI?]"):
```
```python
from embedchain import Pipeline as App
from embedchain import App
unacademy_ai_app = App()
unacademy_ai_app.add(
"https://unacademy.com/content/upsc/study-material/plan-policy/atma-nirbhar-bharat-3-0/",