123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- ---
- title: ❓ FAQs
- description: 'Collections of all the frequently asked questions'
- ---
- #### Does Embedchain support OpenAI's Assistant APIs?
- Yes, it does. Please refer to the [OpenAI Assistant docs page](/get-started/openai-assistant).
- #### How to use `gpt-4-turbo` model released on OpenAI DevDay?
- <CodeGroup>
- ```python main.py
- import os
- from embedchain import Pipeline as App
- os.environ['OPENAI_API_KEY'] = 'xxx'
- # load llm configuration from gpt4_turbo.yaml file
- app = App.from_config(yaml_path="gpt4_turbo.yaml")
- ```
- ```yaml gpt4_turbo.yaml
- llm:
- provider: openai
- config:
- model: 'gpt-4-turbo'
- temperature: 0.5
- max_tokens: 1000
- top_p: 1
- stream: false
- ```
- </CodeGroup>
- #### How to use GPT-4 as the LLM model?
- <CodeGroup>
- ```python main.py
- import os
- from embedchain import Pipeline as App
- os.environ['OPENAI_API_KEY'] = 'xxx'
- # load llm configuration from gpt4.yaml file
- app = App.from_config(yaml_path="gpt4.yaml")
- ```
- ```yaml gpt4.yaml
- llm:
- provider: openai
- config:
- model: 'gpt-4'
- temperature: 0.5
- max_tokens: 1000
- top_p: 1
- stream: false
- ```
- </CodeGroup>
- #### I don't have OpenAI credits. How can I use some open source model?
- <CodeGroup>
- ```python main.py
- import os
- from embedchain import Pipeline as App
- os.environ['OPENAI_API_KEY'] = 'xxx'
- # load llm configuration from opensource.yaml file
- app = App.from_config(yaml_path="opensource.yaml")
- ```
- ```yaml opensource.yaml
- llm:
- provider: gpt4all
- config:
- model: 'orca-mini-3b-gguf2-q4_0.gguf'
- temperature: 0.5
- max_tokens: 1000
- top_p: 1
- stream: false
- embedder:
- provider: gpt4all
- config:
- model: 'all-MiniLM-L6-v2'
- ```
- </CodeGroup>
- #### How to contact support?
- If docs aren't sufficient, please feel free to reach out to us using one of the following methods:
- <Snippet file="get-help.mdx" />
|