Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Support Llama-2 in LangChain mode #58

Open
jaelgu opened this issue Aug 2, 2023 · 6 comments
Open

[Enhancement]: Support Llama-2 in LangChain mode #58

jaelgu opened this issue Aug 2, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jaelgu
Copy link
Collaborator

jaelgu commented Aug 2, 2023

What would you like to be added?

Akcio offers two options to build the system: langchain or towhee.
The option using Towhee has already supported Llama-2 as LLM.
To support Llama-2 for LangChain, we need to add a llama_2_chat.py under https://github.com/zilliztech/akcio/tree/main/src_langchain/llm.

With llama-2 supported in LangChain mode, the following steps should start service successfully:

  1. Set up

Change to your own Milvus & Postgres connection details (modify config.py if needed.)

$ export LLM_OPTION=llama_2
$ export MILVUS_URI=https://localhost:19530
$ export SQL_URI=postgresql://postgres:postgres@localhost/chat_history
  1. Start service
$ python main.py --langchain

OR start gradio demo:

$ python gradio_demo.py --langchain

Why is this needed?

No response

Anything else?

No response

@jaelgu jaelgu added enhancement New feature or request good first issue Good for newcomers labels Aug 2, 2023
@jaelgu jaelgu assigned jaelgu and unassigned jaelgu Aug 2, 2023
@LovishGarg2004
Copy link

Hello! I am new to this type of issue and I would like to work on this.
Please assign me this project #58.

@jaelgu
Copy link
Collaborator Author

jaelgu commented Aug 7, 2023

Hello! I am new to this type of issue and I would like to work on this.
Please assign me this project #58.

Cool! I've assigned you this issue.

@LovishGarg2004
Copy link

I have gone through several documentations related to this issue like - LLM, Langchain etc.
Still I am having a difficulties :

  1. How to create "llama_2_chat.py" script.
  2. What other documentations or topics I need to focus on, in order to solve this issue.
  3. Please explain that what this project is all about and what is the main motive to solve this issue.

@jaelgu
Copy link
Collaborator Author

jaelgu commented Aug 7, 2023

I have gone through several documentations related to this issue like - LLM, Langchain etc. Still I am having a difficulties :

  1. How to create "llama_2_chat.py" script.
  2. What other documentations or topics I need to focus on, in order to solve this issue.
  3. Please explain that what this project is all about and what is the main motive to solve this issue.

You can check out the description of this issue. The target is to successfully start the chatbot service using commands in the description.

@ishaan-jaff
Copy link

@jaelgu @LovishGarg2004 Addressing this issue here #70

@LovishGarg2004
Copy link

LovishGarg2004 commented Aug 20, 2023

@jaelgu @LovishGarg2004 Addressing this issue here #70

  • You can go ahead with it. 👍
  • I'm dropping this from my side due to some issues on my side.

@jaelgu jaelgu assigned ishaan-jaff and unassigned LovishGarg2004 Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants