mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
This commit introduces the ability to associate response sources to an inbox, allowing external webpages to be parsed by Chatwoot. The parsed data is converted into embeddings for use with GPT models when managing customer queries. The implementation relies on the `pgvector` extension for PostgreSQL. Database migrations related to this feature are handled separately by `Features::ResponseBotService`. A future update will integrate these migrations into the default rails migrations, once compatibility with Postgres extensions across all self-hosted installation options is confirmed. Additionally, a new GitHub action has been added to the CI pipeline to ensure the execution of specs related to this feature.
17 lines
568 B
Ruby
17 lines
568 B
Ruby
json.id resource.id
|
|
json.name resource.name
|
|
json.source_link resource.source_link
|
|
json.source_type resource.source_type
|
|
json.inbox_id resource.inbox_id
|
|
json.account_id resource.account_id
|
|
json.created_at resource.created_at.to_i
|
|
json.updated_at resource.updated_at.to_i
|
|
json.response_documents do
|
|
json.array! resource.response_documents do |response_document|
|
|
json.id response_document.id
|
|
json.document_link response_document.document_link
|
|
json.created_at response_document.created_at.to_i
|
|
json.updated_at response_document.updated_at.to_i
|
|
end
|
|
end
|