DocumentAnswer.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <document-cards :data="data" :hasUpload="false" :hasSlider="false" />
  3. </template>
  4. <script>
  5. import DocumentCards from "@/components/DocumentCards.vue";
  6. import { defineComponent, ref, inject, reactive } from "vue";
  7. export default defineComponent({
  8. components: {
  9. DocumentCards
  10. },
  11. setup() {
  12. const data = ref([
  13. {
  14. background: "rgba(72, 177, 244, 0.06)",
  15. color: "rgb(72, 177, 244)",
  16. img: "/src/assets/answer/1.png",
  17. title: "多源多问答",
  18. content: "检索多个文档内容,通过大模型生成答案"
  19. },
  20. {
  21. background: "rgba(158, 128, 255, 0.06)",
  22. color: "rgb(158, 128, 255)",
  23. img: "/src/assets/answer/2.png",
  24. title: "垂域知识库",
  25. content: "通过后台管理平台,快速构建垂域的专业知识库"
  26. },
  27. {
  28. background: "rgba(24, 200, 138, 0.06)",
  29. color: "rgb(24, 200, 138)",
  30. img: "/src/assets/answer/3.png",
  31. title: "文档溯源",
  32. content: "答案引用的文档支持预览及文档内容高亮"
  33. },
  34. {
  35. background: "rgba(255, 110, 110, 0.06)",
  36. color: "rgb(255, 110, 110)",
  37. img: "/src/assets/answer/4.png",
  38. title: "文档检索",
  39. content: "支持用户查看问题相关的全量文档"
  40. }
  41. ]);
  42. return {
  43. data
  44. };
  45. }
  46. });
  47. </script>