Skip to content

Commit

Permalink
fix init issue of langchain chroma (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiRen committed Oct 9, 2023
1 parent f5d34ed commit fdefe27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/script/chatbot/start_ft_mpt-7b-chat_mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ hname=$(hostname -s)
python3 workflows/chatbot/fine_tuning/instruction_tuning_pipeline/finetune_clm.py \
--model_name_or_path mosaicml/mpt-7b-chat \
--train_file .github/workflows/sample_data/alpaca_data_sample_45.json \
--bf16 True \
--bf16 False \
--output_dir ./mpt_peft_finetuned_model \
--num_train_epochs 1 \
--max_steps 3
--max_steps 3 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--gradient_accumulation_steps 1 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from langchain.vectorstores.chroma import Chroma
from langchain.docstore.document import Document
from langchain.embeddings import HuggingFaceInstructEmbeddings
from langchain.vectorstores import Chroma
from haystack.schema import Document as SDocument
from .context_utils import load_unstructured_data, laod_structured_data, get_chuck_data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

"""The wrapper for Chroma retriever based on langchain"""

from langchain.vectorstores import Chroma
from langchain.vectorstores.chroma import Chroma

class ChromaRetriever():
"""Retrieve the document database with Chroma database using dense retrieval."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ evaluate
pydub
python-multipart
PyPDF2
langchain==0.0.308
langchain
python-docx
scikit-learn
farm-haystack
Expand Down

0 comments on commit fdefe27

Please sign in to comment.