from django import forms

from backend.models import Knowledgebase


class KnowledgebaseForm(forms.ModelForm):
    class Meta:
        model = Knowledgebase
        fields = ['create_time', 'update_time', 'role_id', 'name', 'description' ,
                  'language', 'embd_id', 'permission' ,'created_by', 'doc_num',
                  'token_num', 'chunk_num', 'similarity_threshold', 'vector_similarity_weight', 'parser_id', 'parser_config', 'status','location']

