HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • Write
      • Owners
      • Signed-in users
      • Everyone
      Owners Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- tags: cofacts, meeting note GA: UA-98468513-3 --- 20230802 會議記錄 ===== :::info - [所有會議記錄](https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/) - 線上出席:nonumpa, cai - Workis:bil, dennis, mrorz - https://gather.town/app/z3x18KQFgZCX8MeZ/cofacts ::: ## CCPRIP ### [Comm layer] 逐字稿 > https://g0v.hackmd.io/@cofacts/rd/%2FOhGIQzoxR5eF6audQuS_FQ > [name=nonumpa] Update this? https://github.com/orgs/cofacts/projects/11 - 關掉好了 [name=mrorz] [name=nonumpa] #### History > [name=nonumpa] - 遇到問題:user name 會在某個狀況被清掉;疑似是 y.js 的 bug [name=nonumpa] - 論壇有提出問題,看後續狀況 - 如何 authenticate user [name=mrorz] - [onAuthenticate` 有 HTTP request header](https://tiptap.dev/hocuspocus/server/hooks#on-authenticate) - 跟 cofacts API 同網域的話應該有 login cookie - localhost 測試比較麻煩⋯⋯ - 轉送 cookie & header 到 rumors-api GraphQL,透過 `GetUser` 拿目前登入 user 後回傳,[其他 hook 就拿得到](https://tiptap.dev/hocuspocus/guides/auth) #### AI > https://g0v.hackmd.io/@cofacts/rd/%2Fwkx286lmTDaFUpgRhnUawQ > [name=mrorz] https://github.com/cofacts/rumors-api/pull/309 相似度分數問題 - Score 變更,目前 LINE bot [圖片相似度計算邏輯](https://github.com/cofacts/rumors-line-bot/blob/c4fc0b6c9a2da846849733478ccfac15c610c57c/src/webhook/handlers/processImage.js#L103)無法適用 - score 是「圖片有多像 (0~1)」*100 + 「文字有多像 (ES TF-IDF, 無固定範圍)」 [![](https://s3-ap-northeast-1.amazonaws.com/g0v-hackmd-images/uploads/upload_56da77a66c4cbc2a1c3228aaac590ef2.png)](https://www.figma.com/file/1tiXCGut4kNCEkDG9FTza7/LINE-Chat-UI-Template-(Community)?type=design&node-id=369-1864&mode=design&t=mpj55pAgqTLnCWlO-4) - 目前僅顯示文字相似度且按照文字相似度排序。 - 新版:[name=mrorz] - 按照 Elasticsearch 算的 score 排序? - 若選項是圖或影片且無逐字稿,則顯示「有類似圖片」不提供相似度? - 若選項是圖或影片又有逐字稿,就圖跟文一起顯示,顯示文字的相似度,顯示 highlight? :::success - 按照上面的 proposal 進行 [name=mrorz] ::: #### API > 想確認如何實作 [name=mrorz] > 時機:CreateMediaArticle 內 (建立 article doc),產出 transcript 後,希望寫入 ydoc. rumors-api 直接產生 ydoc v.s. 在 collab server 實作一個 API? - 目前寫入 article.text 與 ydoc 的地方:https://github.com/cofacts/collab-server/blob/master/hocuspocus-extension-elasticsearch/src/elasticsearch.ts - 使 `hocuspocus-extension-elasticsearch` depend on Cofacts-specifc `articles` index - 似乎應該移動到 collab-server 的 [server hooks](https://tiptap.dev/hocuspocus/server/hooks) [name=mrorz] - [onStoreDocument](https://tiptap.dev/hocuspocus/server/hooks#on-store-document) - 想做在前端 create snapshot。如果使用者不想存檔,可以按取消,此時不應該 update [name=nonumpa] - ydoc 還是會寫入,但 article.text 會在按完成時更新 [name=nonumpa] - 討論結果:因為會 cancel 到其他人的 work,不符合大家使用 google doc 等共編的體驗,還是改回原本的自動 snapshot (onStoreDocument 時) - Option 1:直接寫入 ydoc - 直接用 Y.js 寫一個 ydoc 文件 - no structured data? - 現在 ydoc 格式是 prosemirror 的 XML 格式 [name=nonumpa] - Option 2:呼叫 collab-server API - 可能比較乾淨,只有一個地方會同時寫入 ydoc 並將文字放進 article text - rumors-api 與 collab-server 需要有個 shared secret - Option 3:rumors-api 跟 collab-server 放進 mono-repo 然後抽出寫 ydoc 的邏輯共用 - 前置作業一大堆⋯⋯ :::success 先走走看 Option 1 - 研究 Prosemirror XML format ::: >prosemirror 貼上 html, text https://prosemirror.net/docs/ref/#view.EditorView.pasteHTML > > prosemirror YDoc 轉換 prosemirrorJSONToYDoc, yDocToProsemirrorJSON https://github.com/yjs/y-prosemirror > > prosemirror 在 ydoc 上會被存成 xmlfragment >https://github.com/yjs/y-prosemirror/blob/6349748b44859eacb8e54ef94757e2f59bb89113/tests/y-prosemirror.test.js#L164 > [name=nonumpa] ## Article group / Cooccurrence > https://g0v.hackmd.io/@cofacts/rd/%2Ff_Ze19PhQuqx_fzOAOkohQ > [name=LY] - rumors-db PR: https://github.com/cofacts/rumors-db/pull/65 - rumors-api PR: https://github.com/cofacts/rumors-api/pull/311 ## 小聚 ### 9/17 - 台中好民文化行動協會 / cai++ 建議的場地 - 有位置,已發信 book 13:30 - 17:30 [name=bil] - 25 人以內 - https://www.ccat.tw/article/35 - 好民文化行動 2500/4hr 公益團體價 - 抓 10 人到場,但報名可以開 20 - 收到場地確認後開 kktix - https://cofacts.kktix.cc/events/cofactseditor38 ### 11/18 台南新營 updated date ## 交流 - CALD - 大松 https://g0v-jothon.kktix.cc/events/g0v-hackath57n

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.